Created
December 31, 2019 18:23
-
-
Save adityadeshpande/db9b97bfd4e766a4b361bb5d59741b46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let client = appInsights.defaultClient; | |
client.trackEvent({name: "my custom event", properties: {customProperty: "custom property value"}}); | |
client.trackException({exception: new Error("handled exceptions can be logged with this method")}); | |
client.trackMetric({name: "custom metric", value: 3}); | |
client.trackTrace({message: "trace message"}); | |
client.trackDependency({target:"http://dbname", name:"select customers proc", data:"SELECT * FROM Customers", duration:231, resultCode:0, success: true, dependencyTypeName: "ZSQL"}); | |
client.trackRequest({name:"GET /customers", url:"http://myserver/customers", duration:309, resultCode:200, success:true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment