- 
                Notifications
    You must be signed in to change notification settings 
- Fork 758
Closed
Labels
Description
Spec requires log API to support any in attribute types https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-attributes
The log attribute model MUST support
anytype,
a superset of standard Attribute,
to preserve the semantics of structured attributes emitted by the applications.
LogRecord uses the same Attributes type as other signals and does not support any attribute value
| AttributeValue = Union[ | |
| str, | |
| bool, | |
| int, | |
| float, | |
| Sequence[str], | |
| Sequence[bool], | |
| Sequence[int], | |
| Sequence[float], | |
| ] | 
The recommendation is to:
- Keep supporting standard Attributes- see Attributes "hell" opentelemetry-specification#4201 for the context
- Add log-specific attributes type that can take anyvalue and accept it as well
As long as p2 can be done incrementally, the lack of it should not block logs API/SDK stability.
It might, however block stability of logging handler bridge which should be able to create anyvalue attributes.
Part of open-telemetry/community#1751
aabmass and dzmitry-panamarenka-absa
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done