Skip to content

Commit 8e3adaf

Browse files
committed
exclude the spans
1 parent f492ba4 commit 8e3adaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def add_http_breadcrumb(status_code, data):
229229
def maybe_create_breadcrumbs_from_span(
230230
scope: "sentry_sdk.Scope", span: "sentry_sdk.tracing.Span"
231231
) -> None:
232-
if span.op == OP.HTTP_CLIENT:
232+
if span.op == OP.HTTP_CLIENT and span.origin not in ("auto.http.aiohttp",):
233233
level = None
234234
status_code = span._data.get(SPANDATA.HTTP_STATUS_CODE)
235235
if status_code:

0 commit comments

Comments
 (0)