We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6571f7 commit c0dbf98Copy full SHA for c0dbf98
opentelemetry/src/context.rs
@@ -1,3 +1,14 @@
1
+//! Execution-scoped context propagation.
2
+//!
3
+//! The `context` module provides mechanisms for propagating values across API boundaries and between
4
+//! logically associated execution units. It enables cross-cutting concerns to access their data in-process
5
+//! using a shared context object.
6
7
+//! # Main Types
8
9
+//! - [`Context`]: An immutable, execution-scoped collection of values.
10
11
+
12
use crate::otel_warn;
13
#[cfg(feature = "trace")]
14
use crate::trace::context::SynchronizedSpan;
@@ -13,7 +24,6 @@ mod future_ext;
24
25
pub use future_ext::FutureExt;
15
26
16
-
17
27
thread_local! {
18
28
static CURRENT_CONTEXT: RefCell<ContextStack> = RefCell::new(ContextStack::default());
19
29
}
0 commit comments