goenning / next-applicationinsights

React higher-order component for using Azure Application Insights inside Next.js
MIT License
15 stars 7 forks source link

OperationID is not set properly causing the loss of session correlation between page movements #29

Open johnib opened 2 years ago

johnib commented 2 years ago

Hi,

As can be seen in the. below picture, I have had a single session, moving from /home to /demo and back. The operation_Id value is different in each pageView causing the loss of correlation between these page views, ruining the AppInsights built in experiences.

See the following

image

The following (and many others) experience will not work as long as the operation_Id gets a new value for every pageView:

image

Same for user-flows and more.

Can this be fixed?