Resource merge error for different versions #3361
Labels
spec:resource
Related to the specification/resource directory
triage:deciding:community-feedback
Open to community discussion. If the community can provide sufficient reasoning, it may be accepted
Currently the specification defines the following merge strategy:
This results in resources that are defined using different versions of the OpenTelemetry semantic conventions to be merged into an undefined resource and results in an errors.
Users of libraries that provide resources (via a detector or directly) are often frustrated when they try to merge these resources together or with their own defined resources because the schema URLs differ and the merge results in an error. This is especially frustrating to them given they do not control the upgrade or downgrade of these resources they get from 3rd party libraries and currently have no way to resolve the error.
Given the telemetry schema exist for OpenTelemetry, it should be possible use the telemetry schema to upgrade/downgrade resources for a user (e.g. open-telemetry/opentelemetry-go#3944) and subsequently merge successfully into a single resource.
Existing Implementation
The following is a non-comprehensive survey of what language implementation currently do.
@open-telemetry/dotnet-maintainers, @open-telemetry/python-maintainers, @open-telemetry/javascript-maintainers, @open-telemetry/cpp-maintainers @open-telemetry/erlang-maintainers, @open-telemetry/ruby-maintainers: please feel free to edit the table above to correct any information.
cc @trask
Proposal
Either:
The text was updated successfully, but these errors were encountered: