microsoft / applicationinsights-angularplugin-js

MIT License
30 stars 17 forks source link

pageView always the same time #130

Closed landetus closed 10 months ago

landetus commented 10 months ago

I'm using latest versions for application insights and angular plugin in an angular SPA website: image

I've created a service and initialized it in the app.component.ts and it's sending the data to the azure application insights. The only thing I'm experiencing is that the time for the pageView in the logs is always the same and it's the one whenever the application it's initialized:

image image

As you can see in the images the timestamps are grouped for the time the app is initialized, and the only way to get a new timestamp is reloading the app.

For PageVisitTime this is not happening, I get the right time for each call: image

Is this the intended behaviour or am I doing something wrong?

Thanks in advace.

MSNev commented 10 months ago

No, this is a bug in v3.0.3 of Application Insights https://github.com/microsoft/ApplicationInsights-JS/issues/2180

@siyuniu-ms Once we have published v3.0.4 I think we should prepare an updated release of all of the components bumping them away from using 3.0.3 as the base, especially for this plugin and the react-js one.

landetus commented 10 months ago

Many thanks @MSNev I'll follow the updates.