Skip to content

[Prometheus.HttpListener] Remove UriPrefixes from .NET documentation #7268

@martincostello

Description

@martincostello

The Configure the example app to use OpenTelemetry's Prometheus exporter on learn.microsoft.com uses the following code snippet:

.AddPrometheusHttpListener(options => options.UriPrefixes = new string[] { "http://localhost:9184/" })

The UriPrefixes property was made obsolete in #7114.

Once we have released a version containing this change to NuGet.org we should update the samples (1, 2) to use Host and Port instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation relatedhelp wantedGood for taking. Extra help will be provided by maintainerspkg:OpenTelemetry.Exporter.Prometheus.HttpListenerIssues related to OpenTelemetry.Exporter.Prometheus.HttpListener NuGet package

    Type

    No fields configured for Task.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions