Skip to content

Commit a46b881

Browse files
authored
Merge branch 'main' into re-export-tonic
2 parents 23fd53d + 4791aae commit a46b881

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)