microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
321 stars 138 forks source link

TrackEvent no longer reporting Measurements #1318

Closed JCBauza closed 3 weeks ago

JCBauza commented 2 months ago

Hi,

If I do the following:

// Set up some properties and metrics: var properties = {"name": "SomeRandomName"}; var metrics = {"MetricA": 10, "MetricB": 5};

// Send the event: instanceClient.trackEvent({name: "TestEvent", properties: properties, measurements: metrics});

I can see the event with the correct name and properties... but the measurements/metrics I pass get completely dropped. My dashboards are coming back empty. Any ideas what changed?

JacksonWeber commented 2 months ago

@JCBauza Thank you for reporting this issue. It'll be resolved by https://github.com/microsoft/ApplicationInsights-node.js/pull/1319. For now, using version 2.X SDK or recording related metrics separately should be valid solutions.

JCBauza commented 2 months ago

Thank you. Are those metrics going to be related to the event that sends them as before? I’m asking because the properties of the event in my case are used to filter those metrics, or more specifically, I use them as tags and on the graphs the values are grouped by those tags.

JacksonWeber commented 1 month ago

@JCBauza Yes, that's correct. They should operate in the same way they have in the past and will be available upon the next release of the Azure Monitor Exporter in the PR mentioned above.

JacksonWeber commented 4 weeks ago

@JCBauza Let me know if this has resolved your issue, thanks!

JacksonWeber commented 3 weeks ago

Closing as fix has been merged. Feel free to reopen if you have follow up questions.