vaadin / observability-kit

Other
5 stars 2 forks source link

feat: instrument JavaScriptBootstrapHandler #50

Closed sissbruecker closed 2 years ago

sissbruecker commented 2 years ago

Description

Adds instrumentation for the JavaScriptBootstrapHandler, which adds a span and updates the root span to contain the route for the current browser location, rather than the request URL.

Bildschirmfoto 2022-08-23 um 15 08 18

It seems this handler is only called when the bootstrap actually happens, so there was no need to conditionally create the span.

Closes #3

caalador commented 2 years ago

This is only called when bootstrap happens because it is the last handler in the list as it should only really receive that one call for when the app is bootstrapped.