From 9db6eb058cb55e1c25ced81ce064b7eacb57fa78 Mon Sep 17 00:00:00 2001 From: wint3rmute Date: Thu, 20 Jul 2023 19:42:33 +0200 Subject: [PATCH] Fix formatting --- src/invidious/metrics.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/metrics.cr b/src/invidious/metrics.cr index 8007ca7d..7165b14f 100644 --- a/src/invidious/metrics.cr +++ b/src/invidious/metrics.cr @@ -4,12 +4,12 @@ module Metrics record MetricLabels, request_method : String, request_route : String, response_code : Int32 # Counts how many a given route was used - REQUEST_COUNTERS = Hash(MetricLabels, Int64).new + REQUEST_COUNTERS = Hash(MetricLabels, Int64).new # Counts how much time was used to handle requests to each route REQUEST_DURATION_SECONDS_SUMS = Hash(MetricLabels, Float32).new - # The handler which will record metrics when registered in a Kemal application + # The handler which will record metrics when registered in a Kemal application METRICS_COLLECTOR = RouteMetricsCollector.new(REQUEST_COUNTERS, REQUEST_DURATION_SECONDS_SUMS) class RouteMetricsCollector < Kemal::Handler