vaadin / observability-kit

Other
5 stars 2 forks source link

fix: set correct route on root span for rpc handlers #112

Closed sissbruecker closed 1 year ago

sissbruecker commented 1 year ago

Description

Ensure that all traces for RPC calls have the root span name, http.route attribute set to the respective route that the UI is on, and http.target to the actual location.

Fixes #111

Type of change

sissbruecker commented 1 year ago

@caalador I had to add a static mock for UI as well in order to mock UI.getCurrent. Restructured the abstract test setup / teardown a bit to combine individual methods.