Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Metrics, tracing spans and the dashboard description a running Turnframe application reports through.

Modules§

attrs
The attribute keys this crate emits, in one place.
composite
Combining observers, and the observer tests assert against.
dashboard
The reliability dashboard of spec §26.3, as data.
metrics
Metric emission through the metrics facade (spec §26.2, §28).
otel
OpenTelemetry bridge (feature otel).
tracing
Structured tracing: the end-to-end trace of one turn (spec §26.1).

Structs§

CompositeObserver
Fans every signal out to several observers, in registration order.
ContentRecorder
Records prompt and completion text on a provider-call span.
Dashboard
A data-only description of the reliability dashboard.
GroupingSpanProcessor
A span processor that copies the trace grouping out of OpenTelemetry baggage onto every span that starts underneath it.
MetricDoc
One row of the metric catalogue: everything the README table publishes.
MetricsObserver
An Observer that turns signals into metrics counters and histograms.
OtelObserver
An Observer that records signals on OpenTelemetry instruments.
Panel
One panel: what it answers, which metrics feed it, and against what it is normalized.
ProviderCall
One provider call, described with the OpenTelemetry GenAI semantic conventions (gen_ai.*).
RecordedSignal
One signal as a RecordingObserver kept it.
RecordingObserver
An observer that keeps everything it was given, for assertions in tests.
TraceGrouping
Vendor-neutral grouping of spans: which session, which end user, which tags, which environment, which release.
TracingObserver
An Observer that emits one structured tracing event per signal.
TurnIdentifiers
The stable identifiers of one turn (spec §26.1).

Enums§

ContentRole
Which half of a conversation a piece of content is.
LabelKey
Name of a metric dimension.
PanelId
One panel of the reliability dashboard (spec §26.3).
PanelSource
Where a panel’s numbers come from.
PipelineStage
One stage of the turn pipeline, used as the name of a child span.

Traits§

ContentRedactor
Decides what, if anything, of a prompt or completion may be recorded.