Skip to content

Commit

Permalink
Fix metric name (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Dec 30, 2024
1 parent 17d8de6 commit 643279f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Middleware/MetricsMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public struct MetricsMiddleware<Context: RequestContext>: 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)
Expand Down

0 comments on commit 643279f

Please sign in to comment.