diff --git a/config/clients/java/template/telemetry-Metrics.java.mustache b/config/clients/java/template/telemetry-Metrics.java.mustache index 2c263e37..189fbb80 100644 --- a/config/clients/java/template/telemetry-Metrics.java.mustache +++ b/config/clients/java/template/telemetry-Metrics.java.mustache @@ -19,14 +19,14 @@ public class Metrics { private final Configuration configuration; public Metrics() { - this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.5.0"); + this.meter = OpenTelemetry.noop().getMeterProvider().get("{{artifactId}}/{{packageVersion}}"); this.counters = new HashMap<>(); this.histograms = new HashMap<>(); this.configuration = new Configuration(); } public Metrics(Configuration configuration) { - this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.5.0"); + this.meter = OpenTelemetry.noop().getMeterProvider().get("{{artifactId}}/{{packageVersion}}"); this.counters = new HashMap<>(); this.histograms = new HashMap<>(); this.configuration = configuration;