You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`tracing=True` will **always enable** tracing (overrides everything)
441
+
-`tracing=False` will **always disable** tracing (overrides everything)
442
+
-`tracing=None` or omitted will check lower priority settings
443
+
444
+
2.**Environment variable** (second priority):
445
+
```env
446
+
CREWAI_TRACING_ENABLED=true
447
+
```
448
+
- Checked only if `tracing` is not explicitly set to `True` or `False` in code
449
+
- Set to `true` or `1` to enable tracing
450
+
451
+
3.**User preference** (lowest priority):
452
+
```shell Terminal
453
+
crewai traces enable
454
+
```
455
+
- Checked only if `tracing` is not set in code and `CREWAI_TRACING_ENABLED` is not set to `true`
456
+
- Running `crewai traces enable` is sufficient to enable tracing by itself
457
+
458
+
<Note>
459
+
**To enable tracing**, use any one of these methods:
460
+
- Set `tracing=True` in your Crew/Flow code, OR
461
+
- Add `CREWAI_TRACING_ENABLED=true` to your `.env` file, OR
462
+
- Run `crewai traces enable`
463
+
464
+
**To disable tracing**, use any ONE of these methods:
465
+
- Set `tracing=False` in your Crew/Flow code (overrides everything), OR
466
+
- Remove or set to `false` the `CREWAI_TRACING_ENABLED` env var, OR
467
+
- Run `crewai traces disable`
468
+
469
+
Higher priority settings override lower ones.
470
+
</Note>
471
+
472
+
<Tip>
473
+
For more information about tracing, see the [Tracing documentation](/observability/tracing).
474
+
</Tip>
475
+
405
476
<Tip>
406
477
CrewAI CLI handles authentication to the Tool Repository automatically when adding packages to your project. Just append `crewai` before any `uv` command to use it. E.g. `crewai uv add requests`. For more information, see [Tool Repository](https://docs.crewai.com/enterprise/features/tool-repository) docs.
0 commit comments