Skip to content

Commit f1f84e1

Browse files
committed
Ignore opentelemetry logger in logging integration
Without this, internal otel logs (especially `logger.exception`s) will show up as events / breadcrumbs in the payload.
1 parent 92f5391 commit f1f84e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# Note: Ignoring by logger name here is better than mucking with thread-locals.
4141
# We do not necessarily know whether thread-locals work 100% correctly in the user's environment.
4242
_IGNORED_LOGGERS = set(
43-
["sentry_sdk.errors", "urllib3.connectionpool", "urllib3.connection"]
43+
["sentry_sdk.errors", "urllib3.connectionpool", "urllib3.connection", "opentelemetry.*"]
4444
)
4545

4646

0 commit comments

Comments
 (0)