OptionalenrichHook for adding custom attributes to the server span just before the inner pipeline runs. Errors thrown here are swallowed.
OptionalexcludePaths to exclude from tracing entirely (no span created).
Accepts plain strings or objects with a path property
(e.g. an EndpointBuilder). Useful for /health and other
high-frequency, low-value endpoints.
OptionalrecordWhether to record the URL query string as url.query.
Disabled by default because query strings frequently contain PII (search terms, tokens). Enable explicitly only when you have verified your URLs are safe to record.
OptionalresponseName of the response header that carries the W3C trace ID for the current request span.
Expose this so API consumers can include it in bug reports and you can look up the exact trace in SigNoz / Jaeger / etc.
Set to false to disable the header entirely.
OptionaltracerTracer name used when resolving the OTel tracer.
OptionaltracerTracer version.
Configuration for tracingMiddleware.