From 27c95f36cdf09dfc718423568ba5cda686ce3891 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Tue, 23 Jul 2024 17:27:58 +0200 Subject: [PATCH] wip: is_remote PotelSentrySpanProcessor --- sentry_sdk/integrations/opentelemetry/potel_span_processor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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