Skip to content

[Metrics] Update Prometheus snippets#54486

Merged
BillWagner merged 1 commit into
dotnet:mainfrom
martincostello:gh-opentelemetry-dotnet-7268
Jun 22, 2026
Merged

[Metrics] Update Prometheus snippets#54486
BillWagner merged 1 commit into
dotnet:mainfrom
martincostello:gh-opentelemetry-dotnet-7268

Conversation

@martincostello

Copy link
Copy Markdown
Member

Summary

Update snippets using the OpenTelemetry Prometheus exporters to the latest version and remove obsolete UriPrefixes property usage.

UriPrefixes was made obsolete by open-telemetry/opentelemetry-dotnet#7114 and was superseded by Host and Port. The property itself will be removed by open-telemetry/opentelemetry-dotnet#7435.

As the default value of Host is localhost, only Port needs to be set (its default is 9464).

Fixes open-telemetry/opentelemetry-dotnet#7268.

Update snippets using the OpenTelemetry Prometheus exporters to the latest version and remove obsolete `UriPrefixes` property usage.

Fixes open-telemetry/opentelemetry-dotnet#7268.
@dotnetrepoman dotnetrepoman Bot added this to the June 2026 milestone Jun 21, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates PR is created by someone from the .NET community. label Jun 21, 2026
@martincostello martincostello marked this pull request as ready for review June 21, 2026 07:34
@martincostello martincostello requested review from a team and tommcdon as code owners June 21, 2026 07:34

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM @martincostello

I'll :shipit:

@BillWagner BillWagner merged commit 140575f into dotnet:main Jun 22, 2026
11 checks passed
@martincostello martincostello deleted the gh-opentelemetry-dotnet-7268 branch June 22, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Prometheus.HttpListener] Remove UriPrefixes from .NET documentation

2 participants