Skip to main content

Module traces

Module traces 

Source
Available on crate feature tracing only.
Expand description

OTLP/HTTP JSON encoding of closed spans. Enable with the tracing feature. OTLP/HTTP JSON encoding of closed spans (/v1/traces).

Constants§

DEFAULT_TRACES_ENDPOINT
The endpoint a SpanExporter uses when given none: the OTLP/HTTP traces route of a Collector on this host.

Functions§

serialise_spans
Serialise closed spans into one OTLP/HTTP JSON ExportTraceServiceRequest, under a resource whose service.name is service_name.