Skip to content

Commit

Permalink
Use Attribute rather than boundattribute in logrecord repr (#3567)
Browse files Browse the repository at this point in the history
* Use Attribute rather than boundattribute in logrecord

* Update __init__.py

fix lint
  • Loading branch information
pegasas committed Feb 16, 2024
1 parent e9c7c75 commit 2b9dcfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Use Attribute rather than boundattribute in logrecord
([#3567](https://github.com/open-telemetry/opentelemetry-python/pull/3567))
- Fix flush error when no LoggerProvider configured for LoggingHandler
([#3608](https://github.com/open-telemetry/opentelemetry-python/pull/3608))
- Fix `OTLPMetricExporter` ignores `preferred_aggregation` property
Expand Down
4 changes: 1 addition & 3 deletions opentelemetry-api/src/opentelemetry/attributes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ def __init__(
self._immutable = immutable

def __repr__(self):
return (
f"{type(self).__name__}({dict(self._dict)}, maxlen={self.maxlen})"
)
return f"{dict(self._dict)}"

def __getitem__(self, key):
return self._dict[key]
Expand Down

0 comments on commit 2b9dcfc

Please sign in to comment.