From d5909c56885370c4329fa8ad822ecf1542c5b5f5 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Mon, 19 Aug 2024 11:41:39 -0500 Subject: [PATCH] fix(java-sdk): ensure `MeterProvider` uses the correct package version --- config/clients/java/template/telemetry-Metrics.java.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;