Enable trace collection for crew/flow executions.
()
| 1012 | |
| 1013 | @traces.command("enable") |
| 1014 | def traces_enable() -> None: |
| 1015 | """Enable trace collection for crew/flow executions.""" |
| 1016 | from rich.console import Console |
| 1017 | from rich.panel import Panel |
| 1018 | |
| 1019 | console = Console() |
| 1020 | |
| 1021 | update_user_data({"trace_consent": True, "first_execution_done": True}) |
| 1022 | |
| 1023 | panel = Panel( |
| 1024 | "✅ Trace collection enabled.\n\n" |
| 1025 | "Your crew/flow executions will now send traces to CrewAI+.\n" |
| 1026 | "Use 'crewai traces disable' to opt out.", |
| 1027 | title="Traces Enabled", |
| 1028 | border_style="green", |
| 1029 | padding=(1, 2), |
| 1030 | ) |
| 1031 | console.print(panel) |
| 1032 | |
| 1033 | |
| 1034 | @traces.command("disable") |
nothing calls this directly
no test coverage detected
searching dependent graphs…