opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Implement SDK metrics for trace

Open anuraaga opened this issue 1 month ago • 1 comments

I am helping implement the SDK metrics spec. Exporter metrics for all signals have already been implemented, this starts on the tracer side. A very similar PR will come later for logs, and a less similar one for metrics

https://opentelemetry.io/docs/specs/semconv/otel/sdk-metrics/

anuraaga avatar Dec 05 '25 04:12 anuraaga

Codecov Report

:x: Patch coverage is 91.98113% with 17 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 90.09%. Comparing base (0e646e8) to head (af0de7a). :warning: Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...a/io/opentelemetry/sdk/trace/SdkTracerMetrics.java 82.14% 12 Missing and 3 partials :warning:
...telemetry/sdk/trace/export/BatchSpanProcessor.java 87.50% 1 Missing and 1 partial :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7895      +/-   ##
============================================
- Coverage     90.10%   90.09%   -0.01%     
- Complexity     7325     7360      +35     
============================================
  Files           825      829       +4     
  Lines         22051    22219     +168     
  Branches       2179     2185       +6     
============================================
+ Hits          19868    20018     +150     
- Misses         1504     1517      +13     
- Partials        679      684       +5     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Dec 05 '25 04:12 codecov[bot]

FYI this is a copy of #7441 and #7430, which was opened right before I was out on leave. Since I came back I've been preoccupied with other things and lost track of it. I feel bad about that @JonasKunz.

Now we've got 2 PRs doing the same thing and I'm not sure there's a fair way to proceed.

Edit: maybe its some consolation if I make a concerted effort to get this reviewed and merged this time around.

jack-berg avatar Dec 11 '25 22:12 jack-berg