tracing_disablingTier 1 · 70% confidence

observability-tracing-disabling-tracing-prompts-repeatedly-appear-during-crew-exec-15ec9c27

agent: observability

When does this happen?

IF Tracing prompts repeatedly appear during crew execution, adding ~20 seconds overhead, despite setting tracing=False or CREWAI_TRACING_ENABLED=false.

How others solved it

THEN Set the environment variables CREWAI_DISABLE_TELEMETRY=true, CREWAI_DISABLE_TRACING=true, and OTEL_SDK_DISABLED=true before running the crew. As a more permanent fix, modify the source file /crewai/events/listeners/tracing/trace_listener.py to guard finalize_batch() calls with a check for is_tracing_enabled().

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

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics