Skip to main contentModule otel
Source - ClientMetadata
- Session and client metadata recorded as span attributes on every tool call.
- extract_and_set_trace_context
- Extract W3C Trace Context from MCP request _meta field and set as parent span context.
- init_log_appender
- Initializes OpenTelemetry log appender if OTEL_EXPORTER_OTLP_ENDPOINT is set.
- init_meter
- Initializes OpenTelemetry metrics SDK if OTEL_EXPORTER_OTLP_ENDPOINT is set.
- init_otel
- Initializes OpenTelemetry with OTLP export if OTEL_EXPORTER_OTLP_ENDPOINT is set.