ratel-ai-telemetry (Rust)
The ratel.* telemetry vocabulary as typed Rust constants: attribute keys, span
and event names, and the value enums (Origin, SearchTarget, AuthOutcome).
Codifies the Tier 2 overlay of ../CONVENTIONS.md so callers
emit the convention without stringly-typed keys, plus the pinned semconv version
(SEMCONV_VERSION) and the content-capture gate env var.
Emitting the vocabulary is done through the standard OpenTelemetry SDK; this crate adds no transport, no FFI, no schema (ADR-0007).
Library shape
- Crate name:
ratel-ai-telemetry - Library name:
ratel_ai_telemetry - No dependencies; released under the
telemetry-core-v*tag prefix (ADR-0008) - MIT (ADR-0009); member of the root Cargo workspace
Build & test
From the repo root:
The tests are the contract-against-the-pin conformance for the Rust helper: each
constant and enum value is asserted against the vocabulary pinned in
../CONVENTIONS.md.