Skip to main content

Module otel

Module otel 

Source

Structs§

ClientMetadata
Session and client metadata recorded as span attributes on every tool call.

Functions§

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.