MCPcopy
hub / github.com/crewAIInc/crewAI / traces_disable

Function traces_disable

lib/cli/src/crewai_cli/cli.py:1035–1054  ·  view source on GitHub ↗

Disable trace collection for crew/flow executions.

()

Source from the content-addressed store, hash-verified

1033
1034@traces.command("disable")
1035def 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")

Callers

nothing calls this directly

Calls 2

update_user_dataFunction · 0.90
printMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…