Skip to content

Commit c6c58ad

Browse files
committed
fix: re-export WithContext in the same place
1 parent b2de6cc commit c6c58ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

opentelemetry/src/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use std::sync::Arc;
2323
mod future_ext;
2424

2525
pub use future_ext::FutureExt;
26+
pub use future_ext::WithContext;
2627

2728
thread_local! {
2829
static CURRENT_CONTEXT: RefCell<ContextStack> = RefCell::new(ContextStack::default());

opentelemetry/src/trace/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::{borrow::Cow, error::Error, sync::Mutex};
88

99
// Re-export for compatability. This used to be contained here.
1010
pub use crate::context::FutureExt;
11+
pub use crate::context::WithContext;
1112

1213
const NOOP_SPAN: SynchronizedSpan = SynchronizedSpan {
1314
span_context: SpanContext::NONE,

0 commit comments

Comments
 (0)