No custom Events or custom Metrics in the App Insights
See original GitHub issueI have an appropriate environment variable with an instrumentation key in our app. After I run appInsights.setup().start() I can see basic data like amount of requests in App Insights.
Also, we have an angular app serving from this Node app. I included the javascript sdk and can see metrics like page load time in the same dashboard.
But my problem is that custom Events and custom Metrics in Nodejs SDK do not show up in the charts. There are no errors or other feedback, so I don’t know how to make it work.
I have these test lines running to get metrics and I’m pretty sure these lines run many times:
client.trackEvent("registeredLogin", {id: "someid", name: "somename" });
client.trackEvent("registeredLogin2", {test: 123});
client.trackMetric("registeredLogin", 1);
But I can’t find anything in neither the Metrics Explorer nor in the customEvents/customMetrics tables in the Analytics.
In the package.json file I have "applicationinsights": "^0.15.11".
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10

Top Related StackOverflow Question
This line will set it for your own client only:
client.config.endpointUrl = "https://dc.services.visualstudio.com/v2/track";So you need to do it for autocollection client somehow. @KamilSzostak how to do it?@romangusev I’d suggest to update the SDK version though to the latest one
Or set it manually by
client.config.endpointUrl = "https://dc.services.visualstudio.com/v2/track";