Skip to content

Commit

Permalink
fix(java-sdk): ensure MeterProvider uses the correct package version (
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Aug 19, 2024
2 parents ed95236 + d5909c5 commit 5ba50bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/clients/java/template/telemetry-Metrics.java.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ba50bf

Please sign in to comment.