Skip to content

Commit 361e5e6

Browse files
update CHANGELOG, updates
1 parent 2b8e1c3 commit 361e5e6

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

  • instrumentation/opentelemetry-instrumentation-structlog/src/opentelemetry/instrumentation/structlog

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
249249
([#3912](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3912))
250250

251251
### Added
252-
252+
- `opentelemetry-instrumentation-structlog`: Add new package providing `StructlogHandler` and `StructlogInstrumentor` to bridge structlog into the OpenTelemetry Logs SDK pipeline with trace context correlation and exception capture.
253+
([#4286](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4286))
253254
- `opentelemetry-instrumentation-botocore`: Add support for AWS Secrets Manager semantic convention attribute
254255
([#3765](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3765))
255256
- `opentelemetry-instrumentation-dbapi`: Add support for `commenter_options` in `trace_integration` function to control SQLCommenter behavior

instrumentation/opentelemetry-instrumentation-structlog/src/opentelemetry/instrumentation/structlog/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
}
7777

7878
# Mapping from stdlib log levels to OTel severity numbers
79-
# Based on the SDK's LoggingHandler implementation
8079
_STD_TO_OTEL = {
8180
10: SeverityNumber.DEBUG,
8281
11: SeverityNumber.DEBUG2,
@@ -128,7 +127,6 @@
128127
def std_to_otel(levelno: int) -> SeverityNumber:
129128
"""
130129
Map python log levelno to OTel log severity number.
131-
Based on the SDK's LoggingHandler implementation.
132130
"""
133131
if levelno < 10:
134132
return SeverityNumber.UNSPECIFIED
@@ -272,8 +270,7 @@ def flush(self) -> None:
272270
Flush the logger provider.
273271
274272
This method flushes any pending logs. It runs in a separate thread
275-
to avoid potential deadlocks, following the pattern from the SDK's
276-
LoggingHandler.
273+
to avoid potential deadlocks.
277274
"""
278275
if hasattr(self._logger_provider, "force_flush") and callable(
279276
self._logger_provider.force_flush

0 commit comments

Comments
 (0)