Преглед изворни кода

Update OpenTelemetry configuration comments and add environment variable for OTEL exporter

Yuki Takei пре 9 месеци
родитељ
комит
d4651c5c88
2 измењених фајлова са 6 додато и 2 уклоњено
  1. 4 1
      apps/app/.env.development
  2. 2 1
      apps/app/.env.production

+ 4 - 1
apps/app/.env.development

@@ -31,6 +31,9 @@ QUESTIONNAIRE_SERVER_ORIGIN="http://host.docker.internal:3003"
 # AUDIT_LOG_ADDITIONAL_ACTIONS=
 # AUDIT_LOG_EXCLUDE_ACTIONS=
 
-# OpenTelemetry Configuration
+# OpenTelemetry for GROWI Configuration
 OPENTELEMETRY_ENABLED=false
+
+# OpenTelemetry Official Configuration
+# Environment variables starting with 'OTEL_' are automatically loaded by the OpenTelemetry SDK
 OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317

+ 2 - 1
apps/app/.env.production

@@ -5,7 +5,8 @@
 FORMAT_NODE_LOG=false
 MIGRATIONS_DIR=dist/migrations/
 
-# OpenTelemetry Configuration
+# OpenTelemetry Official Configuration
+# Environment variables starting with 'OTEL_' are automatically loaded by the OpenTelemetry SDK
 OTEL_TRACES_SAMPLER_ARG=0.1
 OTEL_METRIC_EXPORT_INTERVAL=300000
 OTEL_EXPORTER_OTLP_ENDPOINT="https://telemetry.growi.org"