Add optional OpenTelemetry traces, metrics and OTLP logs

This commit is contained in:
2026-10-23 06:09:43 +00:00
parent 57c810ea65
commit 4ed14b42a7
8 changed files with 813 additions and 11 deletions
+8
View File
@@ -97,6 +97,14 @@ services:
# openssl rand -base64 32
KCA_MASTER_KEY: ${KCA_MASTER_KEY:-MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=}
MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-20971520}
# Optional OpenTelemetry export (OTLP/HTTP). Set OTEL_ENABLED=1 and
# point OTEL_EXPORTER_OTLP_ENDPOINT at a collector, e.g.
# http://otel-collector:4318
OTEL_ENABLED: ${OTEL_ENABLED:-false}
OTEL_SERVICE_NAME: ${OTEL_SERVICE_NAME:-kca}
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-}
OTEL_EXPORTER_OTLP_HEADERS: ${OTEL_EXPORTER_OTLP_HEADERS:-}
OTEL_EXCLUDED_PATHS: ${OTEL_EXCLUDED_PATHS:-/api/health}
ports:
- "127.0.0.1:${APP_PORT:-8080}:8080"