Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

The OpenTelemetry tracing of the server, built with the tracing feature: the exporter of the spans and the trace context the clients pass with their requests.

Structsยง

Metadata ๐Ÿ”’
Additional telemetry metadata to carry.

Constantsยง

HOST_NAME ๐Ÿ”’
PROCESS_PID ๐Ÿ”’

Functionsยง

into_map ๐Ÿ”’
Convert the capnp map of the metadata, a list of key value entries, into a rust map.
set_parent_context ๐Ÿ”’
Set the parent context of a span from the provided slice data. It has to happen before the span got entered the first time, which starts it.
tracer_provider ๐Ÿ”’
Build the tracer provider which exports the spans to the OTLP endpoint.