web: fix otel url
Created by: valerybugakov
Context
Take into account the openTelemetry.endpoint
path for the OTel tracing URL. From https://sourcegraph.sourcegraph.com/v1/traces
to https://sourcegraph.sourcegraph.com/-/debug/v1/traces
Added relevant unit tests to avoid regressions in the future.
Test plan
ENABLE_OPEN_TELEMETRY=true sg start web-standalone
- Open the network tab and see that the
v1/traces
URL is correct.
App preview:
Check out the client app preview documentation to learn more.