Skip to content

Remove Prometheus host default migration log - #8720

Closed
viminizer wants to merge 2 commits into
open-telemetry:mainfrom
viminizer:remove-prometheus-host-log
Closed

Remove Prometheus host default migration log#8720
viminizer wants to merge 2 commits into
open-telemetry:mainfrom
viminizer:remove-prometheus-host-log

Conversation

@viminizer

Copy link
Copy Markdown

Removes the migration log in PrometheusHttpServerBuilder, per the TODO left in #8298:

// TODO (jack-berg): Remove log after 1.64.0 release

1.64.0 shipped on 2026-07-10 and 1.65.0 on 2026-08-07, so the condition has been met for two releases.

Scope note: I also made host non-nullable. The field comment said it was "Temporarily nullable to detect when it's not set and log warning about 0.0.0.0 -> localhost change" — the log was the only reason for the nullability, so host now initialises to DEFAULT_HOST and the resolvedHost null check in build() is gone. Happy to cut this back to removing only the log if you'd prefer the smaller diff.

I left the setHost Javadoc note about the previous 0.0.0.0 default in place, since that's still useful to users and outside what the TODO covered.

./gradlew :exporters:prometheus:check passes. No public API change, so no apidiff updates.

The log was added in open-telemetry#8298 to warn users that PrometheusHttpServer's
default host changed from 0.0.0.0 to localhost, with a TODO to remove it
after the 1.64.0 release. Both 1.64.0 and 1.65.0 have since shipped, so
the warning has served its purpose.

Removing it also removes the only reason `host` was nullable, so it now
defaults to DEFAULT_HOST directly and the null handling in build() goes
away.
@viminizer
viminizer requested a review from a team as a code owner August 12, 2026 00:30
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 12, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 12, 2026

Copy link
Copy Markdown

Pull request dashboard status

Closed · refreshed 2026-08-12 02:03 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.64%. Comparing base (427e6c1) to head (7439460).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8720   +/-   ##
=========================================
  Coverage     91.64%   91.64%           
+ Complexity    10351    10350    -1     
=========================================
  Files          1003     1003           
  Lines         27211    27206    -5     
  Branches       3199     3198    -1     
=========================================
- Hits          24937    24933    -4     
  Misses         1566     1566           
+ Partials        708      707    -1     

☔ View full report in Codecov by Harness.
📢 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.

@viminizer

Copy link
Copy Markdown
Author

Closing — this duplicates #8679, which @jack-berg opened on 31 July and which I missed before opening this. Sorry for the noise.

@viminizer viminizer closed this Aug 12, 2026
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.

1 participant