Add OpenTelemetry OTLP HTTP exporter and headers

This commit is contained in:
Simon Larsen
2024-02-23 12:47:14 +00:00
parent bc47842e35
commit 7ced477ec9
6 changed files with 174 additions and 13 deletions

View File

@@ -170,12 +170,20 @@ BILLING_PRIVATE_KEY=
# Use this when you want to disable incident creation.
DISABLE_AUTOMATIC_INCIDENT_CREATION=false
# If you're using an extrenal open telemetry collector, you can set the endpoint here - both server and client endpoint can be the same in this case.
# You can set the env var to http://otel-collector:4318 if you want instrumentation to be sent to otel collector.
OTEL_EXPORTER_OTLP_ENDPOINT=
SERVER_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT=
# You can set the env var to http://localhost/otlp if you want instrumentation to be sent to local otel collector.
CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT=
# You can set the env var to "x-oneuptime-service-token=<YOUR_ONEUPTIME_SERVICE_TOKEN>"
APP_OTEL_EXPORTER_OTLP_HEADERS=
PROBE_OTEL_EXPORTER_OTLP_HEADERS=
APP_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
PROBE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
STATUS_PAGE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
ACCOUNTS_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
ADMIN_DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=