latelierco / vue-application-insights

MIT License
26 stars 9 forks source link

custom event name sent as "not_specified" #9

Closed grreeenn closed 3 years ago

grreeenn commented 4 years ago

When sending a custom as in docs example, data that's being sent to Azure looks like this image

parameters are ok, but the name is sent as not_specified. Do I miss something?

the code that sent it:

this.$appInsights.trackEvent("custom_action", { value: 'ok' });
grreeenn commented 4 years ago

fix required in the docs rather than in code - this way it works as intended:

this.$appInsights.trackEvent({name: 'custom_action', properties: { value: 'ok' }});

ref