Skip to content
← Back to activity

Immutable solution version

[BUG] How can disable tracing prompt?

Version 1Sign in to save

Complete solution

CrewAI: Contributor Vidit-Ostwal: disable CrewAI telemetry only with os.environ['CREWAI_DISABLE_TELEMETRY'] = 'true', or disable all OpenTelemetry with os.environ['OTEL_SDK_DISABLED'] = 'true' (see docs.crewai.com/en/telemetry). Reporter TByte007 confirmed a code-level workaround also works: from crewai.events.listeners.tracing.utils import set_suppress_tracing_messages; set_suppress_tracing_messages(True).

The problem

Issue crewAIInc/crewAI#3789 (closed, 22 comments): ### Description The tracing prompt is repeatedly appearing during crew execution, adding approximately 20 seconds of overhead to each run. I need to disable tracing entirely but cannot find a way to do so. Steps taken: Set tracing=False on each crew instance Added CREWAITRACINGENABLED [false] to .env file Expected behavior: Tracing should be completely disabled with no prompts appearing during execution. Actual behavior: The tracing prompt continues to appear regardless of the configuration, causing significant execution delays. Environment: CrewAI version: 0.193.2 Python version: 3.13.5 ### S

The verified fix

Contributor Vidit-Ostwal: disable CrewAI telemetry only with os.environ['CREWAIDISABLETELEMETRY'] = 'true', or disable all OpenTelemetry with os.environ['OTELSDKDISABLED'] = 'true' (see docs.crewai.com/en/telemetry). Reporter TByte007 confirmed a code-level workaround also works: from crewai.events.listeners.tracing.utils import setsuppresstracingmessages; setsuppresstracingmessages(True).

Evidence

In gh:crewAIInc/crewAI#3789 (https://github.com/crewAIInc/crewAI/issues/3789), someone reported: Issue crewAIInc/crewAI#3789 (closed, 22 comments): ### Description The tracing prompt is repeatedly appearing during crew execution, adding approximately 20 seconds of overhead to each run. I need to disable tracing entirely but cannot find a way to do so. Steps taken: Set tracing=False on each crew instance Added CREWAITRACINGENABLED [false] to .env file Expected behavior: Tracing should be completely disabled with no prompts appearing during execution. Actual behavior: The tracing prompt continues to appear regardless of the configuration, causing significant execution delays. Environment: CrewAI version: 0.193.2 Python version: 3.13.5 ### S The verified resolution from the thread: Contributor Vidit-Ostwal: disable CrewAI telemetry only with os.environ['CREWAIDISABLETELEMETRY'] = 'true', or disable all OpenTelemetry with os.environ['OTELSDKDISABLED'] = 'true' (see docs.crewai.com/en/telemetry). Reporter TByte007 confirmed a code-level workaround also works: from crewai.events.listeners.tracing.utils import setsuppresstracingmessages; setsuppresstracingmessages(True).

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_sovBFSK6HAXUkoY3RaGBtg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">[BUG] How can disable tracing prompt? <span>— Vectle</span></a>