Skip to content

Commit 3bea149

Browse files
committed
fix: update apmplus exporter init
1 parent 311a4b0 commit 3bea149

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

veadk/tracing/telemetry/opentelemetry_tracer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from typing import Any
2020

2121
from opentelemetry import trace as trace_api
22-
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
2322
from opentelemetry.sdk import trace as trace_sdk
2423
from opentelemetry.sdk.resources import Resource
2524
from opentelemetry.sdk.trace import TracerProvider
@@ -88,7 +87,7 @@ def _init_global_tracer_provider(self) -> None:
8887
span_processors = global_tracer_provider._active_span_processor._span_processors
8988
have_apmplus_exporter = any(
9089
isinstance(p, (BatchSpanProcessor, SimpleSpanProcessor))
91-
and isinstance(p.span_exporter, OTLPSpanExporter)
90+
and hasattr(p.span_exporter, '_endpoint')
9291
and "apmplus" in p.span_exporter._endpoint
9392
for p in span_processors
9493
)

0 commit comments

Comments
 (0)