-
Notifications
You must be signed in to change notification settings - Fork 513
test: Add ignored code in test to prove known issue #2872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add ignored code in test to prove known issue #2872
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2872 +/- ##
=====================================
Coverage 81.3% 81.3%
=====================================
Files 125 125
Lines 24130 24134 +4
=====================================
+ Hits 19622 19630 +8
+ Misses 4508 4504 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fn on_end(&self, _span: SpanData) { | ||
// TODO: Accessing Context::current() will panic today and hence commented out. | ||
// See https://github.com/open-telemetry/opentelemetry-rust/issues/2871 | ||
// let _c = Context::current(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also add an ignored test using a TestSpanProcessor that accesses Context::current() in on_end(), to validate the expected behavior once it's safe.
To demonstrate the issue #2871
This PR is not investigating/fixing the issue, but rather adding a test to confirm the issue exists.