From 643279f31a2a9225972bf798285459728b989e15 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 30 Dec 2024 12:13:33 +0000 Subject: [PATCH] Fix metric name (#644) --- Sources/Hummingbird/Middleware/MetricsMiddleware.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Hummingbird/Middleware/MetricsMiddleware.swift b/Sources/Hummingbird/Middleware/MetricsMiddleware.swift index f380cf02..5763d9aa 100644 --- a/Sources/Hummingbird/Middleware/MetricsMiddleware.swift +++ b/Sources/Hummingbird/Middleware/MetricsMiddleware.swift @@ -29,7 +29,7 @@ public struct MetricsMiddleware: RouterMiddleware { public func handle(_ request: Request, context: Context, next: (Request, Context) async throws -> Response) async throws -> Response { let startTime = DispatchTime.now().uptimeNanoseconds - let activeRequestMeter = Meter(label: "cod", dimensions: [("http.request.method", request.method.description)]) + let activeRequestMeter = Meter(label: "http.server.active_requests", dimensions: [("http.request.method", request.method.description)]) activeRequestMeter.increment() do { var response = try await next(request, context)