diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs index f8d5a4c393a..d4dbe052883 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs @@ -194,7 +194,7 @@ private async Task ProcessRequestAsync(HttpListenerContext context) } } - private bool AcceptsOpenMetrics(HttpListenerRequest request) + private static AcceptsOpenMetrics(HttpListenerRequest request) { if (request.AcceptTypes == null) {