From 3904d5ad8ad4930ddee65287a7bfab785a6148f5 Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 12 May 2026 19:00:08 +0200 Subject: [PATCH] feat: add OpenTelemetry trace configuration with parentbased sampler --- .../account/src/main/resources/application.yml | 3 +++ .../src/main/resources/application.yml | 3 +++ .../src/main/resources/application.yml | 3 +++ modules/core/src/main/resources/application.yml | 3 +++ modules/io/src/main/resources/application.yml | 16 ++++++++++++++++ .../src/main/resources/application.yml | 3 +++ modules/rule/src/main/resources/application.yml | 16 ++++++++++++++++ modules/store/src/main/resources/application.yml | 3 +++ modules/ws/src/main/resources/application.yml | 3 +++ 9 files changed, 53 insertions(+) diff --git a/modules/account/src/main/resources/application.yml b/modules/account/src/main/resources/application.yml index 4ca4e16..902b684 100644 --- a/modules/account/src/main/resources/application.yml +++ b/modules/account/src/main/resources/application.yml @@ -61,6 +61,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/bot-platform/src/main/resources/application.yml b/modules/bot-platform/src/main/resources/application.yml index dda2cc5..ffb6154 100644 --- a/modules/bot-platform/src/main/resources/application.yml +++ b/modules/bot-platform/src/main/resources/application.yml @@ -22,6 +22,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/coordinator/src/main/resources/application.yml b/modules/coordinator/src/main/resources/application.yml index be59cfc..4dc8652 100644 --- a/modules/coordinator/src/main/resources/application.yml +++ b/modules/coordinator/src/main/resources/application.yml @@ -59,6 +59,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/core/src/main/resources/application.yml b/modules/core/src/main/resources/application.yml index 379b4f2..8b0a235 100644 --- a/modules/core/src/main/resources/application.yml +++ b/modules/core/src/main/resources/application.yml @@ -78,6 +78,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/io/src/main/resources/application.yml b/modules/io/src/main/resources/application.yml index 9903bdb..f5509c5 100644 --- a/modules/io/src/main/resources/application.yml +++ b/modules/io/src/main/resources/application.yml @@ -17,3 +17,19 @@ quarkus: nowchess: internal: secret: ${INTERNAL_SECRET:123abc} + +"%deployed": + quarkus: + log: + console: + json: true + otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 + exporter: + otlp: + endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} + nowchess: + internal: + secret: ${INTERNAL_SECRET} diff --git a/modules/official-bots/src/main/resources/application.yml b/modules/official-bots/src/main/resources/application.yml index a9cb55d..1af66b5 100644 --- a/modules/official-bots/src/main/resources/application.yml +++ b/modules/official-bots/src/main/resources/application.yml @@ -22,6 +22,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/rule/src/main/resources/application.yml b/modules/rule/src/main/resources/application.yml index 30f0e73..04b8926 100644 --- a/modules/rule/src/main/resources/application.yml +++ b/modules/rule/src/main/resources/application.yml @@ -10,3 +10,19 @@ quarkus: nowchess: internal: secret: ${INTERNAL_SECRET:123abc} + +"%deployed": + quarkus: + log: + console: + json: true + otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 + exporter: + otlp: + endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} + nowchess: + internal: + secret: ${INTERNAL_SECRET} diff --git a/modules/store/src/main/resources/application.yml b/modules/store/src/main/resources/application.yml index 360d3a6..bb88c62 100644 --- a/modules/store/src/main/resources/application.yml +++ b/modules/store/src/main/resources/application.yml @@ -34,6 +34,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} diff --git a/modules/ws/src/main/resources/application.yml b/modules/ws/src/main/resources/application.yml index 287e25c..b5ea0a4 100644 --- a/modules/ws/src/main/resources/application.yml +++ b/modules/ws/src/main/resources/application.yml @@ -33,6 +33,9 @@ nowchess: console: json: true otel: + traces: + sampler: parentbased_traceidratio + sampler-arg: 0.1 exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317}