Skip to content

Commit e0ac6bb

Browse files
committed
core: mute opentelemetry warnings for logs and metrics
We do not create logs and metrics in the application so it's not necessary to export them. Note that it currently failed because we export to Jaeger that only support traces.
1 parent f88f40d commit e0ac6bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker-compose.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ services:
4949
CORE_EDITOAST_URL: "http://osrd-editoast"
5050
JAVA_TOOL_OPTIONS: "-javaagent:/app/opentelemetry-javaagent.jar"
5151
CORE_MONITOR_TYPE: "opentelemetry"
52-
OTEL_EXPORTER_OTLP_PROTOCOL: "grpc"
53-
OTEL_EXPORTER_OTLP_ENDPOINT: "http://jaeger:4317"
52+
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: "grpc"
53+
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: "http://jaeger:4317"
54+
OTEL_METRICS_EXPORTER: "none"
55+
OTEL_LOGS_EXPORTER: "none"
5456
healthcheck:
5557
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
5658
start_period: 4s

0 commit comments

Comments
 (0)