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 — Fix target_info metric name in PrometheusHttpServerBuilder javadoc by thswlsqls · Pull Request #8628 · open-telemetry/opentelemetry-java

Conversation

@thswlsqls

@thswlsqls thswlsqls commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

No issue: trivial javadoc typo, submitting directly.

Description

  • PrometheusHttpServerBuilder.setTargetInfoMetricEnabled documents the metric as otel_target_info, but the exported name is target_info.
  • Otel2PrometheusConverter.makeTargetInfo() hardcodes MetricMetadata.builder().name("target"), which the Prometheus client exposes as target_info; no code path adds an otel_ prefix.
  • PrometheusMetricReaderBuilder.setTargetInfoMetricEnabled, which this method delegates to, already documents it as target_info.
  • The name matches the Prometheus compatibility spec, which defines target_info.
  • Introduced in Prom exporter update #7934, which added this method.

Testing done

  • Docs-only, test-exempt: no test added — existing tests already assert target_info output.
  • ./gradlew :exporters:prometheus:check — 202 tests + 1 testJpms test passed.
  • No apidiff or CHANGELOG entry: exporters/prometheus is alpha (not tracked by japicmp) and nothing user-facing changes.

Sorry, something went wrong.

Uh oh!

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

All reactions
@thswlsqls
Fix target_info metric name in PrometheusHttpServerBuilder javadoc
8ec933d
@opentelemetry-pr-dashboard opentelemetry-pr-dashboard Bot mentioned this pull request Jul 17, 2026
Pull Request Dashboard #8439
Open
@codecov

codecov Bot commented Jul 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.60%. Comparing base (b86f040) to head (8ec933d).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8628   +/-   ##
=========================================
  Coverage     91.60%   91.60%           
  Complexity    10343    10343           
=========================================
  Files          1013     1013           
  Lines         27352    27352           
  Branches       3215     3215           
=========================================
  Hits          25057    25057           
  Misses         1567     1567           
  Partials        728      728           

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

Sorry, something went wrong.

Uh oh!

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

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 18, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-07-30 14:01 UTC

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

Sorry, something went wrong.

Uh oh!

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

@thswlsqls
thswlsqls marked this pull request as ready for review July 29, 2026 03:24
@thswlsqls
thswlsqls requested a review from a team as a code owner July 29, 2026 03:24
jack-berg
jack-berg approved these changes Jul 30, 2026
View reviewed changes
@jack-berg
jack-berg merged commit f6d31c0 into open-telemetry:main Jul 30, 2026
30 checks passed

Uh oh!

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

@otelbot

otelbot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @thswlsqls! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

All reactions

Sorry, something went wrong.

Uh oh!

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

@thswlsqls
thswlsqls deleted the docs/prometheus-target-info-javadoc-name branch August 5, 2026 00:54
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

No one assigned

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

@thswlsqls @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.