#Is there way to disable traces from engine?

1 messages Β· Page 1 of 1 (latest)

full laurel
#

Hello Team πŸ™‚
I am using dagger engine 0.11.8, but my server is failing with below error
ERR failed to flush spans error="traces export: Post \"

I am looking for way to disable these traces as i don't have otel collector ready yet

can soneone help on this?

livid mauve
full laurel
#

i am not using dagger cloud, still i see it tries to send traces
Full error

livid mauve
#

@full laurel do you have any OTEL envs set?

full laurel
#

Not really

livid mauve
#

this is strange.. it shouldn't be sending any traces if you don't have an *OTEL* variable and you're not logged in to Dagger Cloud. cc @static carbon ?

static carbon
#

Looks like there's one set to me. Maybe for the engine container?

livid mauve
static carbon
shut crane
#

I saw a mention of a DO_NOT_TRACK env var in the docs? Would that disable it?

static carbon
#

@shut crane that's more around analytics (like daggerverse function usage tracking) - it shouldn't disable trace exporting, since that's already opt-in

full laurel
#

For me, i see same error on client when using simple dagger query to remote dagger engine server as well as in engine logs

full laurel
#

morning guys πŸ™‚
let me know if there 's easy fix for that

static carbon
# full laurel Not really

it must be getting OTEL_ configuration from somewhere - you said "not really" before πŸ˜‚ what does that mean? are there any set? what's in env?

does this error come from something running in Dagger? or the outer Dagger CLI?

full laurel
#

No Otel vars is set

#

It's coming from dagger engine

static carbon
#

if you don't have OTEL_ vars set on the client side or the engine side I don't really know what it could be. πŸ˜• It must be getting that IP_ADDRESS:4317 value from somewhere.

shut crane
#

Here is what I am seeing:

Transient error StatusCode.UNAVAILABLE encountered while exporting traces to localhost:4317, retrying in 2s.
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to localhost:4317, retrying in 4s.
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to localhost:4317, retrying in 8s.
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to localhost:4317, retrying in 16s.
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to localhost:4317, retrying in 32s.
#

No OTEL env vars are set, my engine is running as a ds in k8s. Client is in a gitlab runner. No connection ot the internet. This is 0.11.6.

static carbon
shut crane
#

I see it in my gitlab runner output

#

I’ll upgrade and test. Unfortunately it isn’t consistent as to when they show up

full laurel
#

@static carbon I found that we have OTEL_EXPORTER_OTLP_ENDPOINT is set from where we call dagger cli
Actually, this machine is our k8s pod where we have company wide standard support for OTEL shipping, though endpoint is set but it is still not able to to send
questions:

  1. Is dagger cli also trying to send otel(may be only traces)?
  2. engine otel vs dagger cli telemetry are different?
  3. Do both uses same env vars https://github.com/dagger/dagger/blob/450240400e9ca8e9ed34a6d6a1e15f219c4e2080/engine/buildkit/
    executor_spec.go#L64
GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.