Tracing is optional. Use this guide only if preflight setup does not configure tracing automatically in your environment.
python3 -m venv .venv
source .venv/bin/activatepip install "mlflow[genai]>=3.4"Use .claude/settings.example.json and copy the MLflow-related keys/hook blocks into your active settings file:
- Project-level:
.claude/settings.local.json - Global:
~/.claude/settings.json
Required pieces:
MLFLOW_CLAUDE_TRACING_ENABLED,MLFLOW_PORT,MLFLOW_EXPERIMENT_NAMESessionStartandStophooks Note: Set MLFLOW_CLAUDE_TRACING_ENABLED to false to disable tracking
claude Then run Claude and execute an RCA prompt. If configured correctly, traces appear in your MLflow UI.