How to disable execution trace prompt?

Hello. I keep getting this prompt and is timing out my API.

Would you like to view your execution traces? [y/N] (20s timeout)
How can I turn this off?

Did you get the solution? Is it a CrewAI Error?

After upgrading to CrewAI 1.3.0 (latest release) I started seeing -

  1. traces being generated and uploaded
  2. this question asking to view traces

I have tried setting CREWAI_TRACING_ENABLED=false but (so far) this hasn’t helped although print(f"tracing = {is_tracing_enabled()}") outputs tracing = False.
But traces are still generated …

:white_check_mark: Trace batch finalized with session ID: **********************

:link: View here: CrewAI Enterprise - Ephemeral Traces***********
:key: Access Code: TRACE-**********

I would really like to know how to disable this tracing as it generates errors and ends up hanging my entire crew and requiring that I end up killing it.

Seems like it has bugs in it as it first outputs

Trace batch initialization returned status 401. Continuing without tracing.

but then it just hangs until I kill it.

I am able to disable it after adding these,
os.environ[“CREWAI_DISABLE_TELEMETRY”] = “true”
os.environ[“CREWAI_TRACING_ENABLED”] = “false”

1 Like

@swigman I don’t think it is an error. prompt is part of CrewAI’s telemetry/tracing feature that appears after a crew execution completes. It’s not an error — it’s a normal prompt.
If you don’t want to see it there are 2 ways. One of them is already mentioned earlier by @Surendra_IIIVIIX .

os.environ[‘CREWAI_DISABLE_TELEMETRY’] = ‘true’

Or alternatively:

os.environ['OTEL_SDK_DISABLED'] = 'true'