-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using prefix to define attributes #1292
Comments
Another option: prefix is only used to validate that attributes start with it group:
- id: foo
prefix: foo
attributes:
- id: foo.bar This allows to embedding #1264 to work and keeps attributes in the same group consistent, but also solves all the problems with partial name in the |
I have thought a bit about this problem and want to get a few concepts down, and propose an alternative solution. First is that Prefix can not be just replaced with the group id, this wasn't suggested but I want to make sure it's clear. Prefix is just a useful tool to reduce repetition in the yaml. There is a canonical name, made from the What can be done instead of stopping the use of prefix is to make all references globally unique, and my suggestion is to change ref to be a group id and attribute id. While this would still not prevent the introduction of duplicate canonical attributes, we would always be able to refer to the particular attribute we want regardless of the addition of new attributes. |
The canonical name is globally unique today (within otel semconv) and our tooling tests for it. Do I miss something? |
I believe it's fixed with #1293. open-telemetry/weaver#263 stays open to track schema changes |
Attributes can be defined in two equivalent ways.
E.g.
foo.bar
can be defined with prefixfoo
and idbar
or
without prefix and id
foo.bar
Using prefix is inconvenient:
Removing prefix would keep all MD files intact, but would resolve these inconveniences without any obvious downsides.
The text was updated successfully, but these errors were encountered: