Expand description
SAPIENT telemetry — built-in observability, not bolted-on.
Implements the Telemetry trait with:
NoOpTelemetry: zero-overhead defaultConsoleTelemetry: 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
Telemetrytrait and implementations.
Functions§
- init_
tracing - Initialise a global
tracingsubscriber (JSON or pretty).