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

Function traces_enable

lib/cli/src/crewai_cli/cli.py:1014–1031  ·  view source on GitHub ↗

Enable trace collection for crew/flow executions.

()

Source from the content-addressed store, hash-verified

1012
1013@traces.command("enable")
1014def 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")

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…