opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

Support for Semantic Convention schema migrations

Open MovieStoreGuy opened this issue 3 years ago • 4 comments

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

MovieStoreGuy avatar Jan 25 '22 05:01 MovieStoreGuy

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.

Aneurysm9 avatar Jan 25 '22 18:01 Aneurysm9

Hey @alolita ,

could I ask you to move this to the contrib repo?

MovieStoreGuy avatar Mar 16 '22 05:03 MovieStoreGuy

could I ask you to move this to the contrib repo?

Done!

jpkrohling avatar Mar 16 '22 12:03 jpkrohling

Love your work @jpkrohling <3

MovieStoreGuy avatar Mar 17 '22 22:03 MovieStoreGuy

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.

github-actions[bot] avatar Nov 16 '22 03:11 github-actions[bot]

Sorry, I am back to working on this. I just need to rebase and catch up on what i have missed.

MovieStoreGuy avatar Nov 19 '22 07:11 MovieStoreGuy

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.

github-actions[bot] avatar Jan 23 '23 03:01 github-actions[bot]

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.

MrAlias avatar Aug 07 '23 16:08 MrAlias