Skip to main content

Module trace

Module trace 

Source
Expand description

Distributed tracing helpers

When the trace feature is enabled, this module re-exports the real [cf_rustracing]/[cf_rustracing_jaeger] span types.

When the trace feature is disabled, lightweight no-op shim types are provided instead so that the rest of the crate compiles without pulling in the tracing dependencies.

Structs§

Span
A no-op replacement for a rustracing Span.
SpanHandle
A no-op replacement for a rustracing SpanHandle.
Tag
A no-op replacement for [cf_rustracing::tag::Tag].

Functions§

tag_span_with_meta
Tag a span with metadata from a CacheMeta.