This crate provides:
TelemetryLayer, a generic tracing layer that handles publishing spans and events to arbitrary backends
- Utilities for implementing distributed tracing for arbitrary backends
As a tracing layer,
TelemetryLayer can be composed with other layers to provide stdout logging, filtering, etc.
This crate is primarily intended to be used by people implementing their own backends.
A concrete implementation using honeycomb.io as a backend is available in the
Telemetry implementation that does not publish information to any backend. For use in tests.
Errors that can occur while registering the current span as a distributed trace root or attempting to retrieve the current trace context.
Represents the ability to publish events and spans to some arbitrary backend.
Retrieve the distributed trace context associated with the current span. Returns the
Register the current span as the local root of a distributed trace.