You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`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.
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-structlog/src/opentelemetry/instrumentation/structlog/__init__.py
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,6 @@
76
76
}
77
77
78
78
# Mapping from stdlib log levels to OTel severity numbers
79
-
# Based on the SDK's LoggingHandler implementation
80
79
_STD_TO_OTEL= {
81
80
10: SeverityNumber.DEBUG,
82
81
11: SeverityNumber.DEBUG2,
@@ -128,7 +127,6 @@
128
127
defstd_to_otel(levelno: int) ->SeverityNumber:
129
128
"""
130
129
Map python log levelno to OTel log severity number.
131
-
Based on the SDK's LoggingHandler implementation.
132
130
"""
133
131
iflevelno<10:
134
132
returnSeverityNumber.UNSPECIFIED
@@ -272,8 +270,7 @@ def flush(self) -> None:
272
270
Flush the logger provider.
273
271
274
272
This method flushes any pending logs. It runs in a separate thread
275
-
to avoid potential deadlocks, following the pattern from the SDK's
0 commit comments