Disable trace collection for crew/flow executions.
()
| 1033 | |
| 1034 | @traces.command("disable") |
| 1035 | def traces_disable() -> None: |
| 1036 | """Disable trace collection for crew/flow executions.""" |
| 1037 | from rich.console import Console |
| 1038 | from rich.panel import Panel |
| 1039 | |
| 1040 | console = Console() |
| 1041 | |
| 1042 | update_user_data({"trace_consent": False, "first_execution_done": True}) |
| 1043 | |
| 1044 | panel = Panel( |
| 1045 | "❌ Trace collection disabled.\n\n" |
| 1046 | "Your crew/flow executions will no longer send traces " |
| 1047 | "(unless [bold]CREWAI_TRACING_ENABLED=true[/bold] is set in the environment, " |
| 1048 | "which overrides the opt-out).\n" |
| 1049 | "Use 'crewai traces enable' to opt back in.", |
| 1050 | title="Traces Disabled", |
| 1051 | border_style="red", |
| 1052 | padding=(1, 2), |
| 1053 | ) |
| 1054 | console.print(panel) |
| 1055 | |
| 1056 | |
| 1057 | @traces.command("status") |
nothing calls this directly
no test coverage detected
searching dependent graphs…