#Integrating dagger with otel collector

1 messages · Page 1 of 1 (latest)

crystal nexus
#

How can I expose dagger to an otel collector running outside dagger?

acoustic flax
# crystal nexus How can I expose dagger to an otel collector running outside dagger?

by setting the standard OTEL exporter variables, Dagger will just use those. https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/

OpenTelemetry

Endpoint Configuration The following environment variables let you configure an OTLP/gRPC or OTLP/HTTP endpoint for your traces, metrics, and logs.
OTEL_EXPORTER_OTLP_ENDPOINT A base endpoint URL for any signal type, with an optionally-specified port number. Helpful for when you’re sending more than one signal to the same endpoint and want one...

crystal nexus
#

so I set OTEL_EXPORTER_OTLP_ENDPOINT where the dagger client is running? Let me try.

fast sentinel
# acoustic flax yep. That should be it

Appreciate this info, but it seems not to be working for me. I'm running a local collector, but export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318; dagger call ... does not result in any traces.

acoustic flax