Skip to main content

opentelemetry_traceable/
lib.rs

1//! Dynamic, per-function tracing on top of `opentelemetry-rust`.
2//!
3//! Annotate any `fn`/`async fn` with `#[traceable]`, then create an
4//! [`instrumentation::Instrumentation`] and toggle tracing for those functions
5//! at runtime.
6
7pub mod instrumentation;
8pub mod registry;
9pub mod selector;
10
11pub use opentelemetry;
12pub use opentelemetry_traceable_macros::traceable;
13
14#[cfg(feature = "sdk")]
15pub use opentelemetry_sdk;
16
17#[cfg(feature = "otlp")]
18pub use opentelemetry_otlp;
19
20#[doc(hidden)]
21pub mod __private {
22    pub use linkme;
23}