From 51ad3e9e0afdd0352c0da28e17ab551809f837e0 Mon Sep 17 00:00:00 2001 From: Romuald Lemesle Date: Fri, 15 Mar 2024 15:01:24 +0100 Subject: [PATCH] [backend] Prefix product --- .../main/java/io/openbas/telemetry/OpenTelemetryService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbas-api/src/main/java/io/openbas/telemetry/OpenTelemetryService.java b/openbas-api/src/main/java/io/openbas/telemetry/OpenTelemetryService.java index d9109c4ae1..545943d952 100644 --- a/openbas-api/src/main/java/io/openbas/telemetry/OpenTelemetryService.java +++ b/openbas-api/src/main/java/io/openbas/telemetry/OpenTelemetryService.java @@ -13,6 +13,8 @@ @RequiredArgsConstructor public class OpenTelemetryService { + private static final String PREFIX_PRODUCT; + private final Meter meter; private LongCounter longCounter; @@ -20,7 +22,7 @@ public class OpenTelemetryService { @PostConstruct private void init() { this.longCounter = this.meter - .counterBuilder("app.login") + .counterBuilder(PREFIX_PRODUCT + "app.login") .setDescription("Number of login connections") .setUnit("connections") .build();