Proposal: Dictionary of common Attribute/Label definitions #855
Labels
area:semantic-conventions
Related to semantic conventions
release:after-ga
Not required before GA release, and not going to work on before GA
spec:miscellaneous
For issues that don't match any other spec label
Hey all,
In a recent PR regarding metric semantic conventions, we repeatedly diverted the conversation to these topics:
"200"
on a label or200
on an attribute).I propose that we solve this issue by creating a single data dictionary that can be referenced from all semantic conventions. This will clarify what each attribute name signifies, so we don't have to redefine the same names in multiple places.
We use a system like this at New Relic. We've even made this data dictionary publicly-available and searchable. Check it out here: https://docs.newrelic.com/attribute-dictionary?attribute_name=traceId
In this example, because the definition of
traceId
exists in a single place, when it is included in a spec for Spans, Transactions, and Logs, each spec does not need to include a full definition of the attribute.At the moment, OpenTelemetry has defined traceId in at least two places:
I propose something like this, in a big table of all attributes:
8ac95d01265752b841aa418a0ed4cb48
In addition, I think such a document could include details about how to convert each value to a String to be used as a label (or in other places where a value must be coerced to a String):
8ac95d01265752b841aa418a0ed4cb48
200
"200"
The text was updated successfully, but these errors were encountered: