Skip to content

Conversation

@jpb
Copy link

@jpb jpb commented Feb 4, 2026

Description

PrometheusMetricReader originally supported providing a prefix that would be added to all metric names. This feature is still present in the documentation but the behaviour was at some point lost.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Unit tests
  • Tested with private project

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@jpb jpb requested a review from a team as a code owner February 4, 2026 22:10
"""Prometheus metric exporter for OpenTelemetry."""

def __init__(self, disable_target_info: bool = False) -> None:
def __init__(self, prefix: str = "", disable_target_info: bool = False) -> None:
Copy link
Member

@emdneto emdneto Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is a breaking change. yup, griffe detected it as a breaking change, but since this was supposed to work, can we treat it as a fix? @open-telemetry/python-maintainers

Overall, LGTM

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.

2 participants