Skip to content

Commit

Permalink
@Inject Meter
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarranzan committed Oct 23, 2024
1 parent 9442511 commit 3deb443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public class TracedResource {
@Inject
OpenTelemetry openTelemetry;

private Meter meter;
@Inject
Meter meter;

private LongCounter longCounter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
quarkus.application.name=myservice
quarkus.opentelemetry.enabled=true
quarkus.opentelemetry.metrics.enabled=true
quarkus.otel.metrics.enabled=true
quarkus.otel.exporter.otlp.traces.headers=Authorization=Bearer my_secret
quarkus.log.console.format=%d{HH:mm:ss} %-5p traceId=%X{traceId}, parentId=%X{parentId}, spanId=%X{spanId}, sampled=%X{sampled} [%c{2.}] (%t) %s%e%n

0 comments on commit 3deb443

Please sign in to comment.