We're using Dagger via helm with Gitlab K8s runner to build container images. On successful builds, we have no issues but when the build errors, the job goes into an endless try to send metrics/traces which eventually dies when the Gitlab job timeout is reached.
16 : [13.8s] | WARNING [opentelemetry.exporter.otlp.proto.http.trace_exporter]: Transient error Service Unavailable encountered while exporting span batch, retrying in 2.10s.
16 : [15.9s] | WARNING [opentelemetry.exporter.otlp.proto.http.trace_exporter]: Transient error Service Unavailable encountered while exporting span batch, retrying in 3.96s.
16 : [17.2s] | WARNING [opentelemetry.exporter.otlp.proto.http._log_exporter]: Transient error Service Unavailable encountered while exporting logs batch, retrying in 0.91s.
I tried to set the following env vars via the Helm Chart and Gitlab CI but it doesn't get reflected in the runtime env vars of our custom build module.
DAGGER_NO_NAG=1
DO_NOT_TRACK=1
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=""
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=""