Closed mcremer-able closed 6 months ago
Hi :wave: Do you mean you want the continuity of the operation between the initial SSR request and the first page view ?
Like
SSR request
new page (new operation)
.......
I'm working on this, some fixes will probably come this weekend
Hello,
thanks for the quick answer.
Kind of.
There are 2 ways we render a Page and should call trackPageView
Correlating 2 seems difficult, but 1 seems simple because all the calls logging that runs on the server is connected to the same URL as the logging that gets attached to that PageView.
One solution would be:
x-traceId:<traceId>
This would already fill a huge hole in our logging
Currently I do this
This creates the Page View entry, but totally decouples them from the backend process. In https://github.com/huang-julien/nitro-applicationinsights/blob/683f2ed0a3ab8c58b846bae0b2aeee8e674dde52/src/plugin.ts#L38C1-L38C1 we try to get the parentId from the headers and find the
traceParent
It would be great if we could use that to add the page view to that Parent Trace