Skip to content

Commit c0dbf98

Browse files
committed
Add basic module docs
1 parent b6571f7 commit c0dbf98

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

opentelemetry/src/context.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
112
use crate::otel_warn;
213
#[cfg(feature = "trace")]
314
use crate::trace::context::SynchronizedSpan;
@@ -13,7 +24,6 @@ mod future_ext;
1324

1425
pub use future_ext::FutureExt;
1526

16-
1727
thread_local! {
1828
static CURRENT_CONTEXT: RefCell<ContextStack> = RefCell::new(ContextStack::default());
1929
}

0 commit comments

Comments
 (0)