You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The log attribute model MUST support any type,
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
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.
Spec requires log API to support
anyin attribute types https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-attributesLogRecorduses the sameAttributestype as other signals and does not supportanyattribute valueopentelemetry-python/opentelemetry-api/src/opentelemetry/util/types.py
Lines 18 to 27 in f639606
The recommendation is to:
Attributes- see Attributes "hell" opentelemetry-specification#4201 for the contextAs 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