GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prom exporter update by zeitlinger · Pull Request #7934 · open-telemetry/opentelemetry-java

Conversation

@zeitlinger

@zeitlinger zeitlinger commented Dec 21, 2025

Copy link
Copy Markdown
Member

Update to latest declarative configuration.

See open-telemetry/opentelemetry-configuration#474 for a clarification in semantics.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@zeitlinger
zeitlinger requested a review from a team as a code owner December 21, 2025 08:58
@zeitlinger zeitlinger self-assigned this Dec 21, 2025
@codecov

codecov Bot commented Dec 21, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.23077% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.14%. Comparing base (914e359) to head (2030944).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...ometheus/internal/PrometheusComponentProvider.java 66.66% 0 Missing and 2 partials ⚠️
.../exporter/prometheus/Otel2PrometheusConverter.java 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7934      +/-   ##
============================================
+ Coverage     90.11%   90.14%   +0.02%     
- Complexity     7463     7487      +24     
============================================
  Files           834      835       +1     
  Lines         22586    22628      +42     
  Branches       2240     2243       +3     
============================================
+ Hits          20353    20397      +44     
+ Misses         1532     1528       -4     
- Partials        701      703       +2     

☔ 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg reviewed Dec 29, 2025
View reviewed changes
Comment thread ...ometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServerBuilder.java Outdated
* @deprecated {@code otel_scope_*} attributes are always generated.
*/
/** Set if the {@code otel_scope_*} attributes are generated. Default is {@code true}. */
@SuppressWarnings("UnusedReturnValue")

@jack-berg jack-berg Dec 29, 2025

Copy link
Copy Markdown
Member

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.

These suppressions should go on the caller, not this method. If we wanted to inform callers that the response can safely be ignored, we'd use @CanIgnoreReturnValue.

https://errorprone.info/bugpattern/CheckReturnValue

I think you probably copy / pasted this. It must have slipped through the cracks.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@zeitlinger zeitlinger Jan 5, 2026

Copy link
Copy Markdown
Member Author

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.

more like I didn't catch it from the AI - added @CanIgnoreReturnValue for the entire class now

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jack-berg jack-berg Jan 6, 2026

Copy link
Copy Markdown
Member

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.

Sorry should have mentioned this in my initial comment, but we actually explicitly ignore the CanIgnoreReturnValueSuggester from error prone. (see here for the original commit)

If we want to add @CanIgnoreReturnValue, I think we'd want to do it holistically. Or at least commit to doing it holistically. WDYT @jkwatson? Is it worth it to go through all the builders and add an annotation?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@zeitlinger zeitlinger Jan 7, 2026

Copy link
Copy Markdown
Member Author

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.

I'll remove it from the PR to unblock.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jack-berg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
jack-berg
jack-berg reviewed Dec 29, 2025
View reviewed changes
Comment thread ...etheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusMetricReaderBuilder.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg reviewed Dec 29, 2025
View reviewed changes
Comment thread ...rometheus/src/test/java/io/opentelemetry/exporter/prometheus/PrometheusMetricReaderTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg approved these changes Dec 29, 2025
View reviewed changes

@jack-berg jack-berg left a comment

Copy link
Copy Markdown
Member

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.

Couple of nits but looks good. Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jack-berg jack-berg mentioned this pull request Dec 29, 2025
Update java implementation status open-telemetry/opentelemetry-configuration#485
Merged
zeitlinger added 12 commits January 5, 2026 16:25
@zeitlinger
update prom exporter settings
df3a644
@zeitlinger
update prom exporter settings
2936c8b
@zeitlinger
update prom exporter settings
dbfdb10
@zeitlinger
update prom exporter settings
dd129e1
@zeitlinger
update prom exporter settings
57c492b
@zeitlinger
update prom exporter settings
22bc874
@zeitlinger
update prom exporter settings
c74c1a8
@zeitlinger
add @CanIgnoreReturnValue
68e6207
@zeitlinger
rename
c63772e
@zeitlinger
re-use PrometheusMetricReader
b13b64d
@zeitlinger
fix
10d21a7
@zeitlinger
fix
9cff6a4
@zeitlinger
zeitlinger force-pushed the prom-exporter-update branch from 57bbd9c to 9cff6a4 Compare January 6, 2026 10:30
jack-berg
jack-berg reviewed Jan 6, 2026
View reviewed changes
Comment thread ...ters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServer.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg
jack-berg reviewed Jan 6, 2026
View reviewed changes
Comment thread ...ometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServerBuilder.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

zeitlinger added 3 commits January 7, 2026 16:46
@zeitlinger
remove @CanIgnoreReturnValue
c90bc2b
@zeitlinger
pr review
a4e8fdf
@zeitlinger
pr review
e78dc7e
@zeitlinger

zeitlinger commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

@jack-berg please have another look

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jack-berg
make getter package private
2030944
@jack-berg jack-berg mentioned this pull request Jan 8, 2026
Prepare 1.58.0 #7965
Merged
@jack-berg
jack-berg merged commit da310cc into open-telemetry:main Jan 8, 2026
@zeitlinger
zeitlinger deleted the prom-exporter-update branch January 9, 2026 06:49
@thswlsqls thswlsqls mentioned this pull request Jul 17, 2026
Fix target_info metric name in PrometheusHttpServerBuilder javadoc #8628
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jack-berg jack-berg jack-berg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@zeitlinger zeitlinger

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@zeitlinger @jack-berg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.