Skip to main content

Crate sapient_telemetry

Crate sapient_telemetry 

Source
Expand description

SAPIENT telemetry — built-in observability, not bolted-on.

Implements the Telemetry trait with:

  • NoOpTelemetry: zero-overhead default
  • ConsoleTelemetry: prints spans to stderr (useful in dev)
  • OtelTelemetry (feature “otel”): OTLP export

All per-op instrumentation points are in InstrumentedSession in sapient-runtime — telemetry crate only provides the traits and impls.

Re-exports§

pub use profiler::ChromeTracer;
pub use profiler::Span;
pub use telemetry::ConsoleTelemetry;
pub use telemetry::NoOpTelemetry;
pub use telemetry::Telemetry;
pub use telemetry::TelemetryConfig;

Modules§

metrics
Metrics helpers — thin wrappers for per-op counters and histograms.
profiler
Chrome trace format profiler.
telemetry
Telemetry trait and implementations.

Functions§

init_tracing
Initialise a global tracing subscriber (JSON or pretty).