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.
The Configure the example app to use OpenTelemetry's Prometheus exporter on
learn.microsoft.comuses the following code snippet:The
UriPrefixesproperty 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
HostandPortinstead.