|
def _get_attributes(record: logging.LogRecord) -> Attributes: |
|
attributes = { |
|
k: v for k, v in vars(record).items() if k not in _RESERVED_ATTRS |
|
} |
In the latest main branch, attributes extracted from a LogRecord use dict directly. Better to use the BoundedAttributes from API to avoid some corner cases, like invalid value type or messages of long length.