Skip to content

Conversation

@vidyadharamurthy
Copy link
Contributor

No description provided.

@vidyadharamurthy vidyadharamurthy requested a review from a team as a code owner October 29, 2024 08:52
@codecov
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@740dd14). Learn more about missing BASE report.
⚠️ Report is 548 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vidyadharamurthy
Copy link
Contributor Author

@jkwatson - Request your review

@Test
void extract_null_spanctx() {
SpanContext spanContext = tracerShim.extract(Format.Builtin.TEXT_MAP, null);
assertThat(spanContext).isNull();
Copy link
Member

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.

Copy link
Member

@trask trask left a 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)

@jack-berg
Copy link
Member

wdyt of using ApiUsageLogger instead? (though I'm ok with this PR since it only affects opentracing-shim)

ApiUsageLogger logs messages with an AssertionError, which would be pretty noisy and hard miss, especially if logged at the warning level as proposed in this PR.

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.

@trask
Copy link
Member

trask commented Nov 8, 2024

ApiUsageLogger logs messages with an AssertionError, which would be pretty noisy and hard miss, especially if logged at the warning level as proposed in this PR.

ah, I didn't even see that ApiUsageLogger takes an optional level, it doesn't look like we ever use that method and only ever use the default (FINEST)

@jkwatson jkwatson merged commit 54e8209 into open-telemetry:main Sep 11, 2025
29 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Sep 11, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants