Clarify that log attributes are NOT standard attributes #3849
Labels
[label deprecated] triaged-accepted
[label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR
spec:logs
Related to the specification/logs directory
What are you trying to achieve?
Currently, logs attributes are different from standard (resource, trace, metrics) attributes.
However, there may be a desire to make unify them as some languages already use standard attributes for defining log attributes.
I want to have clarification that log attributes are distinct from standard attributes before stabilizing OTel Go Bridge API.
My proposal is to explicitly call out that log attributes are different.
Additional context.
Follow-up to: #2888 (comment)
Prior PRs:
There seem to be no consensus whether the standard attributes should be expanded to support complex types.
I don't believe we'll reach a consensus on limiting log attributes to only accommodate types defined by standard attributes. This would be also a breaking specification change.
I also want to point out that the Bridge API does anyway require the ability to support complex types for log record body. Therefore, the log attributes can be defined using the types used for modelling body.
Moreover, OTLP already supports complex types for attributes so there is no technical need to limit the log attribute values.
Related issues:
The text was updated successfully, but these errors were encountered: