-
Notifications
You must be signed in to change notification settings - Fork 841
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
Changing the log levels in error scenarios #6832
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6832 +/- ##
=======================================
Coverage ? 90.51%
Complexity ? 6600
=======================================
Files ? 731
Lines ? 19736
Branches ? 1936
=======================================
Hits ? 17865
Misses ? 1280
Partials ? 591 ☔ View full report in Codecov by Sentry. |
@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 |
No description provided.