-
Notifications
You must be signed in to change notification settings - Fork 509
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
base: main
Are you sure you want to change the base?
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.1% 81.1%
=====================================
Files 124 124
Lines 23927 23931 +4
=====================================
+ Hits 19410 19414 +4
Misses 4517 4517 ☔ 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.