mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:12:20 +08:00
Tracing handlers consume a large amount of memory over time, which makes using one per route suboptimal (See https://github.com/open-telemetry/opentelemetry-go-contrib/issues/2413). Wrapping all `http.Server` handlers with a tracing handler provides the same tracing abilities for a fraction of the memory usage. A new span formatter is added which allows servers to still contain the request span in the span name.