Define resource mapping for Jaeger export #848
Labels
area:sdk
Related to the SDK
priority:p3
Lowest priority level
release:required-for-ga
Must be resolved before GA release, or nice to have before GA
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
Mapping Resources to Jaeger is not straightforward due to the multiple tracer provider use case, see: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/api.md#tracerprovider. Ideally they would map to Jaeger process tags, however, since two tracer providers can have separate resources, but share the same exporter, an
exporter has to assume that spans are coming from multiple resources. I can see a couple of ways to handle this:
Post per resource: An exporter can group spans by resource, make separate posts for each resource, and map the resource to process tags.
Merge Resource Attributes with Span Attributes: Avoid the multiple resource issue by merging resource attributes with span attributes. This would have to be done for each span.
We could consider re-evaluating the multiple tracer provider use case. It leads to a number of other, similar complications.
Additional context.
Both Python and Go have solved this by merging Resource attributes with Span attributes. See:
We should decide how to handle this and document the decision in the jaeger spec
The text was updated successfully, but these errors were encountered: