Documentation
¶
Overview ¶
Package tracer provides optional OpenTelemetry route middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(t *powertracer.Tracer, options ...Options) httpapi.Middleware
New records an internal route span using the supplied OTel-backed Tracer. It skips HTTP streaming, matching the reference. Use WrapHandler inside Streamify for a span covering the entire streaming invocation instead. Register it before Compress to observe headers left by that middleware. The Lambda wrapper or application owns flushing and provider shutdown.
Types ¶
Click to show internal directories.
Click to hide internal directories.