Skip to content

Commit

Permalink
Update otel config (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhan1 authored May 28, 2024
1 parent e2d76c0 commit 6539984
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class OtelAdapter
rb.header( key, value );
};

@ConfigProperty( name = "quarkus.opentelemetry.enabled" )
@ConfigProperty( name = "quarkus.otel.enabled" )
Boolean enabled;

public boolean enabled()
Expand All @@ -42,7 +42,7 @@ public boolean enabled()

public Span newClientSpan(String adapterName, String name )
{
if ( !enabled )
if ( !enabled() )
{
return null;
}
Expand All @@ -57,7 +57,7 @@ public Span newClientSpan(String adapterName, String name )

public void injectContext( Request.Builder requestBuilder )
{
if ( !enabled )
if ( !enabled() )
{
return;
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ quarkus:
level: DEBUG
"org.commonjava.indy.model":
level: ERROR
opentelemetry:
otel:
enabled: true
tracer:
exporter:
otlp:
exporter:
otlp:
traces:
# This is for sending to something like opentelemetry-collector
# endpoint: http://localhost:4317

Expand Down

0 comments on commit 6539984

Please sign in to comment.