From f97d3386d37ed4340aeecdb36946e47770e2a845 Mon Sep 17 00:00:00 2001 From: Yun-Ting Lin Date: Mon, 1 Aug 2022 17:07:42 -0700 Subject: [PATCH] [Prometheus] Update changelog and minor cleanup. (#3512) --- .../CHANGELOG.md | 15 ++++++++------- .../CHANGELOG.md | 15 ++++++++------- .../PrometheusHttpListener.cs | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/CHANGELOG.md b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/CHANGELOG.md index f2df4b1a83b..ca3dd407279 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/CHANGELOG.md @@ -2,11 +2,12 @@ ## Unreleased -* Split up Prometheus projects based on its hosting mechanism, HttpListener and AspNetCore, - into their own projects and assemblies. The shared code for both hosting mechanism - now lives in the `OpenTelemetry.Exporter.Prometheus.Shared` project and will not - be released. - ([#3430](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3430)) +* Split up Prometheus projects based on its hosting mechanism, + HttpListener and AspNetCore, into their own projects + and assemblies. + ([#3430](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3430) + [#3503](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3503) + [#3507](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3507)) * Added `IEndpointRouteBuilder` extension methods to help with Prometheus middleware configuration on ASP.NET Core @@ -81,8 +82,8 @@ Released 2021-Sep-23 Released 2021-Sep-13 * Bug fixes - ([#2289](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2289)) - ([#2309](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2309)) + ([#2289](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2289) + [#2309](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2309)) ## 1.2.0-alpha2 diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md index 9f4ac19cfa2..324932a4262 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md @@ -2,11 +2,12 @@ ## Unreleased -* Split up Prometheus projects based on its hosting mechanism, HttpListener and AspNetCore, - into their own projects and assemblies. The shared code for both hosting mechanism - now lives in the `OpenTelemetry.Exporter.Prometheus.Shared` project and will not - be released. - ([#3430](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3430)) +* Split up Prometheus projects based on its hosting mechanism, + HttpListener and AspNetCore, into their own projects + and assemblies. + ([#3430](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3430) + [#3503](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3503) + [#3507](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3507)) ## 1.3.0-rc.2 @@ -77,8 +78,8 @@ Released 2021-Sep-23 Released 2021-Sep-13 * Bug fixes - ([#2289](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2289)) - ([#2309](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2309)) + ([#2289](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2289) + [#2309](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2309)) ## 1.2.0-alpha2 diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs index efd022d79b1..ce3a5a48ed8 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs @@ -25,7 +25,7 @@ namespace OpenTelemetry.Exporter.Prometheus internal sealed class PrometheusHttpListener : IDisposable { private readonly PrometheusExporter exporter; - private readonly System.Net.HttpListener httpListener = new(); + private readonly HttpListener httpListener = new(); private readonly object syncObject = new(); private CancellationTokenSource tokenSource;