mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: update OpenTelemetry configuration template to use index for environment variables
This commit is contained in:
@@ -40,11 +40,11 @@ exporters:
|
||||
|
||||
service:
|
||||
telemetry:
|
||||
{{ if or (not .Env.OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT) (eq .Env.DISABLE_TELEMETRY "true") }}
|
||||
{{ if or (not (index .Env "OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT")) (eq .Env.DISABLE_TELEMETRY "true") }}
|
||||
logs:
|
||||
level: "debug"
|
||||
{{ end }}
|
||||
{{ if and (ne .Env.DISABLE_TELEMETRY "true") .Env.OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT }}
|
||||
{{ if and (ne .Env.DISABLE_TELEMETRY "true") (index .Env "OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT") }}
|
||||
logs:
|
||||
level: "debug"
|
||||
metrics:
|
||||
|
||||
Reference in New Issue
Block a user