-
Notifications
You must be signed in to change notification settings - Fork 913
Changing the log levels in error scenarios #6832
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6832 +/- ##
=======================================
Coverage ? 90.01%
Complexity ? 7090
=======================================
Files ? 803
Lines ? 21444
Branches ? 2092
=======================================
Hits ? 19302
Misses ? 1477
Partials ? 665 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@jkwatson - Request your review |
| @Test | ||
| void extract_null_spanctx() { | ||
| SpanContext spanContext = tracerShim.extract(Format.Builtin.TEXT_MAP, null); | ||
| assertThat(spanContext).isNull(); |
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.
Given that this PR only changes the log level, is this test trying to add missing coverage for existing behavior? Or verify logs are emitted at the intended level?
If the latter, I suggest we skip this. We do have test tooling to verify log messages (for example), but asserting the log level seems rather specific.
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.
wdyt of using ApiUsageLogger instead? (though I'm ok with this PR since it only affects opentracing-shim)
ApiUsageLogger logs messages with an I'm not opposed to it since I think that anytime one of these things occurs it indicates that some instrumentation is misusing the API, but just wanted to call it out. |
ah, I didn't even see that |
opentracing-shim/src/test/java/io/opentelemetry/opentracingshim/TracerShimTest.java
Outdated
Show resolved
Hide resolved
…m/TracerShimTest.java Co-authored-by: jason plumb <[email protected]>
|
Thank you for your contribution @vidyadharamurthy! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. |
No description provided.