From 3dfe2249cc4a203bf24578483b192fec7266596b Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Wed, 6 Dec 2023 19:16:43 -0500 Subject: [PATCH] Python 3.12 compat.: LogRecord now has a taskName attribute (#3557) --- CHANGELOG.md | 2 ++ .../src/opentelemetry/sdk/_logs/_internal/__init__.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23c58969a3..894dccc990 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3536](https://github.com/open-telemetry/opentelemetry-python/pull/3536)) - Fix OTLPExporterMixin shutdown timeout period ([#3524](https://github.com/open-telemetry/opentelemetry-python/pull/3524)) +- Handle `taskName` `logrecord` attribute + ([#3557](https://github.com/open-telemetry/opentelemetry-python/pull/3557)) ## Version 1.21.0/0.42b0 (2023-11-01) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py index 0707c00bff..cfa4d6cfa9 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py @@ -428,6 +428,7 @@ def force_flush(self, timeout_millis: int = 30000) -> bool: "stack_info", "thread", "threadName", + "taskName", ) )