Skip to content

Commit cc6295f

Browse files
wip: is_remote PotelSentrySpanProcessor
1 parent acd7cf2 commit cc6295f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry_sdk/integrations/opentelemetry/potel_span_processor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def on_end(self, span):
4848
if is_sentry_span(span):
4949
return
5050

51-
# TODO-neel-potel-remote only take parent if not remote
52-
if span.parent:
51+
if span.parent and not self.parent.is_remote:
5352
self._children_spans[span.parent.span_id].append(span)
5453
else:
5554
# if have a root span ending, we build a transaction and send it

0 commit comments

Comments
 (0)