# Set up the tracer provider
trace.set_tracer_provider(TracerProvider())

trace.get_tracer_provider().add_span_processor(
    BatchSpanProcessor(otlp_exporter)  # OTLP for sending to Opik
)