Labeler support for traced spans #4231
Labels
area: instrumentation
Related to an instrumentation package
enhancement
New feature or request
instrumentation: otelhttp
Problem Statement
Using the
otelhttp.Labeler
is a nice way to get custom attributes into the metrics produced by the instrumentation. When trying to correlate this metric data with other sources, like spans, it would be helpful to have these custom attributes on both the metric and span data.Proposed Solution
Add the attributes from the labeler to the span after serving.
Something like https://github.com/open-telemetry/opentelemetry-go-contrib/compare/main...austince:opentelemetry-go-contrib:feat/support-span-labeler?expand=1
Alternatives
Have a separate SpanLabeler or such. This seemed more complex than valuable.
The text was updated successfully, but these errors were encountered: