Returns {
DEFAULT_LANGSMITH_SPAN_EXPORTER: LangSmithOTLPTraceExporter;
DEFAULT_LANGSMITH_SPAN_PROCESSOR: BatchSpanProcessor;
DEFAULT_LANGSMITH_TRACER_PROVIDER: TracerProvider;
}
Object containing the initialized OTEL components (tracer provider, span processor, exporter)
Initializes OpenTelemetry with LangSmith-specific configuration for tracing.
Call this once at the start of your application to enable tracing integration. Sets global OpenTelemetry components including the tracer provider and context manager.
Requires the following peer dependencies to be installed:
Example
Example: With custom tracer provider