From 33f66aac4f0e3f5d7c757939af86de16f04445ea Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Tue, 26 Nov 2024 16:34:15 -0800 Subject: [PATCH] update --- .../java/com/uid2/shared/vertx/RequestCapturingHandler.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/uid2/shared/vertx/RequestCapturingHandler.java b/src/main/java/com/uid2/shared/vertx/RequestCapturingHandler.java index 43422d06..d52f59d5 100644 --- a/src/main/java/com/uid2/shared/vertx/RequestCapturingHandler.java +++ b/src/main/java/com/uid2/shared/vertx/RequestCapturingHandler.java @@ -218,16 +218,14 @@ private static Integer getSiteId(RoutingContext context) { return null; } - private void incrementMetricCounter(String apiContact, Integer siteId, String siteName, - String host, int status, HttpMethod method, String path) { + private void incrementMetricCounter(String apiContact, Integer siteId, String siteName, String host, int status, HttpMethod method, String path) { assert apiContact != null; String key = apiContact + "|" + siteId + "|" + siteName + "|" + host + "|" + status + "|" + method.name() + "|" + path; if (!_apiMetricCounters.containsKey(key)) { Counter counter = Counter .builder("uid2.http_requests") .description("counter for how many http requests are processed per each api contact and status code") - .tags("api_contact", apiContact, "site_id", String.valueOf(siteId), "site_name", siteName, - "host", host, "status", String.valueOf(status), "method", method.name(), "path", path) + .tags("api_contact", apiContact, "site_id", String.valueOf(siteId), "site_name", siteName, "host", host, "status", String.valueOf(status), "method", method.name(), "path", path) .register(Metrics.globalRegistry); _apiMetricCounters.put(key, counter); }