Skip to content

Commit e0317fa

Browse files
update CHANGELOG, updates
1 parent 0bed7a1 commit e0317fa

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

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

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
([#3796](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3796))
1818

1919
### Added
20+
- `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.
21+
([#4286](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4286))
2022
- `opentelemetry-instrumentation`: botocore: Add support for AWS Secrets Manager semantic convention attribute
2123
([#3765](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3765))
2224
- Add `rstcheck` to pre-commit to stop introducing invalid RST

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)