opentelemetry-collector-contrib
opentelemetry-collector-contrib copied to clipboard
Support for Semantic Convention schema migrations
Is your feature request related to a problem? Please describe. As means of supporting varies versions of the semantic convention, it would be nice to emit only one version of the semantic convention and migrate anyone using an older version to target X.
Describe the solution you'd like The collector has the ability to be configured to emit a given version of the semantic convention and translate older attributes into the new attributes or resource names (metric name, span name) to the updated convention.
Describe alternatives you've considered Ideally this should be resolve by pushing out auto instrumentation and letting the apps upgrade as there is a new version, but isn't always easier to get right. It would also help getting large monolith projects onto the new semantic conventions but schema migrations.
Additional context This was discussed in the last APAC instrumentation meeting and is a nice to have to help allow fast iterations on the semantic convention.
cc @tedsuo
https://github.com/open-telemetry/opentelemetry-go/tree/main/schema was created with the goal of enabling this type of translation, both within the SDK and in the collector.
Hey @alolita ,
could I ask you to move this to the contrib repo?
could I ask you to move this to the contrib repo?
Done!
Love your work @jpkrohling <3
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Sorry, I am back to working on this. I just need to rebase and catch up on what i have missed.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
I created https://github.com/MrAlias/otel-schema-utils to help with opentelemetry-go users who needed to translate resources created at different schema versions.
It is not a complete translation suite, but I thought I would post it here in case it would be helpful to anyone trying to resolve this issue.