Tracing API Reference¶
Optional OpenTelemetry tracing integration (istos[otel]).
OpenTelemetry tracing integration (optional dependency).
TracingMiddleware
¶
Creates an OpenTelemetry span per request, linked across hops.
Continues the caller's trace when the request carried a W3C traceparent
(see :class:~istos.context.RequestEnvelope), and writes this hop's active
traceparent back onto the request context so any outbound query/publish
propagates it to the next hop — end-to-end distributed tracing over Zenoh.
Source code in src/istos/observability/tracing.py
configure_tracing(service_name='istos', endpoint=None)
¶
Configure OpenTelemetry tracing. Returns True if configured, False if opentelemetry is not installed.