Commit 5f6f4509 authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

fix: configure tracing

parent e84b825f
Loading
Loading
Loading
Loading
Loading
+15 −0
Changes for pom.xml: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -90,7 +90,22 @@
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-mongodb-panache</artifactId>
        </dependency>
        <!--     Open Telemetry for distributed logging-->
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-opentelemetry</artifactId>
        </dependency>

        <!--     For Tracing -->
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-logging-gelf</artifactId>
        </dependency>

        <dependency>
            <groupId>io.opentelemetry.instrumentation</groupId>
            <artifactId>opentelemetry-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.etsi.osl.hypo.api</groupId>
            <artifactId>tmf.schema</artifactId>
+16 −0
Changes for src/main/resources/application.properties: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -43,3 +43,19 @@ quarkus.swagger-ui.always-include=true
%prod.quarkus.oidc.auth-server-url=http://192.168.5.185:30081/realms/tmf
%prod.quarkus.swagger-ui.oauth-client-secret=A0cx2x4YT5vqYX3hpmA4kURyGncsl4Vd
%prod.quarkus.swagger-ui.oauth-client-id=tmf-api

#Open Telemetry for Tracing
%prod.quarkus.application.name=cart-api
%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

# Turns on tracing for database queries
%prod.quarkus.datasource.jdbc.telemetry=true
# Ignores Prometheus scrapes
%prod.quarkus.otel.traces.suppress-non-application-uris=true
# Ensures incoming HTTP requests are captured as the Root Span
%prod.quarkus.otel.instrument.quarkus-rest=true
# Forces the use of global W3C standards to pass trace contexts between microservices
%prod.quarkus.otel.propagators=tracecontext,baggage
 No newline at end of file