mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-03 15:41:57 +08:00
* Forward traces from the web UI Adds a `/webapi/traces` endpoint to the proxy web handler to allow receiving traces from the UI so that they can be forwarded to the configured exporter in the proxy_service. To accomodate traces coming in via websockets the tracing handler is updated to pull tracing context first from the standard headers and fallback to retrieving it from a query parameter as web sockets from the UI cannot alter headers. Additionally update `web.Terminal` to propagate the tracing context properly and instruments some of the functions to ensure spans from the UI are properly correlated to spans on the backend.