vaadin / observability-kit

Other
5 stars 2 forks source link

Add ObservabilityHandler identifier to front-end spans attributes #180

Closed mcollovati closed 1 year ago

mcollovati commented 1 year ago

An ObservabilityHandler instance is created and associated to every UI instance, so its identifier could be used to group front-end traces that come from the same browser tab.

ClientInstumentation can add the ObservabilityHandler identifier as an attribute to all the processed spans.

This should also work fine with @PreserveOnRefresh, since the UI instance will not change on page reload and the ObservabilityHandler will not be recreated.