diff --git a/sentry_sdk/integrations/opentelemetry/potel_span_processor.py b/sentry_sdk/integrations/opentelemetry/potel_span_processor.py index faa583a18d..1d7044e7bb 100644 --- a/sentry_sdk/integrations/opentelemetry/potel_span_processor.py +++ b/sentry_sdk/integrations/opentelemetry/potel_span_processor.py @@ -48,8 +48,7 @@ def on_end(self, span): if is_sentry_span(span): return - # TODO-neel-potel-remote only take parent if not remote - if span.parent: + if span.parent and not span.parent.is_remote: self._children_spans[span.parent.span_id].append(span) else: # if have a root span ending, we build a transaction and send it