Skip to content

Commit 33f66aa

Browse files
committed
update
1 parent 33513f5 commit 33f66aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/uid2/shared/vertx/RequestCapturingHandler.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,14 @@ private static Integer getSiteId(RoutingContext context) {
218218
return null;
219219
}
220220

221-
private void incrementMetricCounter(String apiContact, Integer siteId, String siteName,
222-
String host, int status, HttpMethod method, String path) {
221+
private void incrementMetricCounter(String apiContact, Integer siteId, String siteName, String host, int status, HttpMethod method, String path) {
223222
assert apiContact != null;
224223
String key = apiContact + "|" + siteId + "|" + siteName + "|" + host + "|" + status + "|" + method.name() + "|" + path;
225224
if (!_apiMetricCounters.containsKey(key)) {
226225
Counter counter = Counter
227226
.builder("uid2.http_requests")
228227
.description("counter for how many http requests are processed per each api contact and status code")
229-
.tags("api_contact", apiContact, "site_id", String.valueOf(siteId), "site_name", siteName,
230-
"host", host, "status", String.valueOf(status), "method", method.name(), "path", path)
228+
.tags("api_contact", apiContact, "site_id", String.valueOf(siteId), "site_name", siteName, "host", host, "status", String.valueOf(status), "method", method.name(), "path", path)
231229
.register(Metrics.globalRegistry);
232230
_apiMetricCounters.put(key, counter);
233231
}

0 commit comments

Comments
 (0)