Skip to content

Commit 2b9dcfc

Browse files
authored
Use Attribute rather than boundattribute in logrecord repr (#3567)
* Use Attribute rather than boundattribute in logrecord * Update __init__.py fix lint
1 parent e9c7c75 commit 2b9dcfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- Use Attribute rather than boundattribute in logrecord
11+
([#3567](https://github.com/open-telemetry/opentelemetry-python/pull/3567))
1012
- Fix flush error when no LoggerProvider configured for LoggingHandler
1113
([#3608](https://github.com/open-telemetry/opentelemetry-python/pull/3608))
1214
- Fix `OTLPMetricExporter` ignores `preferred_aggregation` property

opentelemetry-api/src/opentelemetry/attributes/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ def __init__(
157157
self._immutable = immutable
158158

159159
def __repr__(self):
160-
return (
161-
f"{type(self).__name__}({dict(self._dict)}, maxlen={self.maxlen})"
162-
)
160+
return f"{dict(self._dict)}"
163161

164162
def __getitem__(self, key):
165163
return self._dict[key]

0 commit comments

Comments
 (0)