Skip to content

Commit 4791aae

Browse files
authored
test: Add ignored code in test to prove known issue (#2872)
1 parent 4b56ee3 commit 4791aae

File tree

1 file changed

+5
-1
lines changed
  • opentelemetry-sdk/src/trace

1 file changed

+5
-1
lines changed

opentelemetry-sdk/src/trace/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ mod tests {
136136
}
137137
}
138138

139-
fn on_end(&self, _span: SpanData) {}
139+
fn on_end(&self, _span: SpanData) {
140+
// TODO: Accessing Context::current() will panic today and hence commented out.
141+
// See https://github.com/open-telemetry/opentelemetry-rust/issues/2871
142+
// let _c = Context::current();
143+
}
140144

141145
fn force_flush(&self) -> crate::error::OTelSdkResult {
142146
Ok(())

0 commit comments

Comments
 (0)