Skip to content

Commit

Permalink
[backend] Prefix product
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois committed Mar 15, 2024
1 parent 2280c15 commit 51ad3e9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
@RequiredArgsConstructor
public class OpenTelemetryService {

private static final String PREFIX_PRODUCT;

private final Meter meter;

private LongCounter longCounter;

@PostConstruct
private void init() {
this.longCounter = this.meter
.counterBuilder("app.login")
.counterBuilder(PREFIX_PRODUCT + "app.login")
.setDescription("Number of login connections")
.setUnit("connections")
.build();
Expand Down

0 comments on commit 51ad3e9

Please sign in to comment.