Expand description
Dynamic, per-function tracing on top of opentelemetry-rust.
Annotate any fn/async fn with #[traceable], then create an
instrumentation::Instrumentation and toggle tracing for those functions
at runtime.
Modules§
- instrumentation
- An
Instrumentationis an intance of a tracing configuration that defines which (of the traceable functions) are enabled for tracing. Each instrumentation maps to one tracer provider (and exporter), so that different exporting configuration can be assigned to different instrumentations. - registry
- Link-time-collected registry of every
#[traceable]function. - selector
- Selecting
#[traceable]functions by name/key, using exact match, or*pattern match.
Attribute Macros§
- traceable
- Marks a
fnorasync fnas a candidate for tracing.