## The problem
Issue traceloop/openllmetry#3414 (closed, 26 comments): ### Which component is this bug for? Traceloop SDK ### 📜 Description When using traceloop-sdk with Instana and/or OpenTelemetry, the integration fails due to an AttributeError. The error appears when starting new spans and ending them with the BatchSpanProcessor from instana/opentelemetry-sdk. The relevant error message is: AttributeError: 'BatchSpanProcessor' object has no attribute 'record_span' This prevents spans from being properly recorded and exported, making tracing with Instana not possible using the provided setup. ### 👟 Reproduction steps 1.
## What to do
Initialize Traceloop before any other OpenTelemetry setup, and point it at the OTLP HTTP endpoint:
os.environ['TRACELOOP_BASE_URL'] = 'http://YOUR-OTLP-HOST:4318'
Traceloop.init(app_name='llm-tracing', telemetry_enabled=False)
If you initialize OpenTelemetry first (or call `Resource.create()` manually), the global tracer provider and service name are already set and Traceloop will not override them, so its spans go nowhere. Then find your traces by service name, call name, or span attributes rather than fixed trace IDs: the SDK may overwrite manually set IDs during ingestion. The reporter confirmed traces appeared in Instana after these changes.