Commit d60d2cb2 authored by Anastasios Poimenidis's avatar Anastasios Poimenidis
Browse files

feat: enable traces and propagation from incoming to outgoing Kafka messages

parent a8700056
Loading
Loading
Loading
Loading
+12 −2
Changes for src/main/resources/application.properties: 12 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ quarkus.micrometer.export.json.path=metrics/json
################## Common ##################

#QUARKUS DEV SETUP
%dev.quarkus.log.console.json=true
%dev.quarkus.log.console.json.active=true

%dev.quarkus.log.console.enable=true
%dev.quarkus.log.console.level=DEBUG
@@ -310,6 +310,7 @@ kogito.events.variables.enabled=false
%prod.quarkus.otel.enabled=true
%prod.quarkus.otel.metrics.enabled=true
%prod.quarkus.otel.exporter.otlp.traces.endpoint=http://otel-collector:4317
%prod.quarkus.otel.exporter.otlp.metrics.endpoint=http://otel-collector:4317

# Ignores Prometheus scrapes
%prod.quarkus.otel.traces.suppress-non-application-uris=true
@@ -318,7 +319,13 @@ kogito.events.variables.enabled=false
# Forces the use of global W3C standards to pass trace contexts between microservices
%prod.quarkus.otel.propagators=tracecontext,baggage

%prod.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  
#disable Open Telemetry for Tracing for dev and test mode
%dev.quarkus.otel.enabled=true
%dev.quarkus.otel.metrics.enabled=true
%test.quarkus.otel.enabled=false
%test.quarkus.otel.metrics.enabled=false

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

# Alternative to the console log
%prod.quarkus.http.access-log.pattern="...traceId=%{X,traceId} spanId=%{X,spanId}"
@@ -337,3 +344,6 @@ quarkus.kogito.devservices.image-name=apache/incubator-kie-kogito-data-index-eph

############## PROD SWAGGER ##############
%prod.quarkus.swagger-ui.always-include=false

# Uses the Maven artifactId as the service.name automatically
quarkus.opentelemetry.tracer.resource-attributes="service.name=${quarkus.application.name}"
 No newline at end of file