LangServe does not define its own standalone OpenTelemetry bootstrap. Instrumentation is configured at the host app/runtime layer (typically FastAPI + LangChain components).
Use this when your LangServe routes run inside a Python web app and you want request + framework spans in Opik.
For full endpoint/header details, see Opik OpenTelemetry overview.
Required headers: Authorization, Comet-Workspace
Optional headers: projectName
Intent: Configure telemetry at the LangServe host boundary so request and framework spans can be exported.
Applies when: LangServe is mounted in an app you control (for example FastAPI).
Required inputs:
Optional inputs:
service.nameMinimal valid setup:
OTEL_EXPORTER_OTLP_ENDPOINTOTEL_EXPORTER_OTLP_HEADERSUse canonical host/runtime setup from: