Skip to content

Commit 3dfe224

Browse files
Python 3.12 compat.: LogRecord now has a taskName attribute (#3557)
1 parent 1625b35 commit 3dfe224

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
([#3536](https://github.com/open-telemetry/opentelemetry-python/pull/3536))
1414
- Fix OTLPExporterMixin shutdown timeout period
1515
([#3524](https://github.com/open-telemetry/opentelemetry-python/pull/3524))
16+
- Handle `taskName` `logrecord` attribute
17+
([#3557](https://github.com/open-telemetry/opentelemetry-python/pull/3557))
1618

1719
## Version 1.21.0/0.42b0 (2023-11-01)
1820

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def force_flush(self, timeout_millis: int = 30000) -> bool:
428428
"stack_info",
429429
"thread",
430430
"threadName",
431+
"taskName",
431432
)
432433
)
433434

0 commit comments

Comments
 (0)