Expand description
This crate provides:
- A tracing layer,
TelemetryLayer
, that can be used to publish trace data to honeycomb.io - Utilities for implementing distributed tracing against the honeycomb.io backend
As a tracing layer, TelemetryLayer
can be composed with other layers to provide stdout logging, filtering, etc.
Re-exports§
pub use tracing_distributed::TelemetryLayer;
pub use tracing_distributed::TraceCtxError;
Structs§
- Builder
- Builds Honeycomb Telemetry with custom configuration values.
- Honeycomb
Telemetry - Telemetry capability that publishes Honeycomb events and spans to some backend
- SpanId
- Unique Span identifier.
- Stdout
Reporter - Reporter that sends events and spans to stdout
- TraceId
- A Honeycomb Trace ID.
Traits§
- Reporter
- Reports data to some backend
Functions§
- current_
dist_ trace_ ctx - Retrieve the distributed trace context associated with the current span.
- new_
blackhole_ telemetry_ layer - Construct a TelemetryLayer that does not publish telemetry to any backend.
- new_
honeycomb_ telemetry_ layer - Construct a TelemetryLayer that publishes telemetry to honeycomb.io using the provided honeycomb config.
- new_
honeycomb_ telemetry_ layer_ with_ trace_ sampling - Construct a TelemetryLayer that publishes telemetry to honeycomb.io using the provided honeycomb config, and sample rate.
- register_
dist_ tracing_ root - Register the current span as the local root of a distributed trace.
Type Aliases§
- Libhoney
Reporter - Reporter that sends events and spans to a
libhoney::Client