vaadin / observability-kit

Other
5 stars 2 forks source link

Preserve front-end traceId #179

Closed mcollovati closed 1 year ago

mcollovati commented 1 year ago

Spans received from the front-end have a "traceId" attribute that seems to be always the same for a UI instance. If the page gets reload, the traceId changes, and this somehow reflects the concept of Vaadin UI instance (except when @PreserveOnRefresh is used)

It would be good to preserve the information in the spans generated by ClientInstrumentation so that it should be easier to detect all the traces sent from the same UI instance

mcollovati commented 1 year ago

The above statement seems not to be correct. The trace id seems to be consistent only in the 'documentLoad` traces

mcollovati commented 1 year ago

Closing, as the trace id is not stable among instrumentations for the same browser tab