Adds JSON-based tracing system for local development that captures
the full request flow through Tatlock's multi-agent architecture.
- Trace/Span dataclasses with automatic timing and nesting
- Context-var based propagation for async-safe tracing
- trace_span async context manager for clean instrumentation
- Traces written to logs/traces/{trace_id}.json
- REST API for listing and retrieving traces (/traces)
- Standalone HTML viewer with timeline visualization
Enabled via DEBUG=true environment variable.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
101 lines
966 B
Plaintext
101 lines
966 B
Plaintext
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
pip-wheel-metadata/
|
|
share/python-wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
|
|
# Virtual environments
|
|
venv/
|
|
env/
|
|
ENV/
|
|
.venv/
|
|
.venv-*
|
|
|
|
# PyCharm
|
|
.idea/
|
|
|
|
# VS Code
|
|
.vscode/
|
|
*.code-workspace
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Jupyter Notebooks
|
|
.ipynb_checkpoints/
|
|
*.ipynb
|
|
|
|
# Testing & Coverage
|
|
.pytest_cache/
|
|
.coverage
|
|
.coverage.*
|
|
coverage.xml
|
|
htmlcov/
|
|
.tox/
|
|
.nox/
|
|
*.cover
|
|
.hypothesis/
|
|
|
|
# Type checking
|
|
.mypy_cache/
|
|
.dmypy.json
|
|
dmypy.json
|
|
.pyre/
|
|
.pytype/
|
|
|
|
# Linting
|
|
.ruff_cache/
|
|
|
|
# Logs
|
|
logs/*
|
|
!logs/traces/
|
|
logs/traces/*
|
|
!logs/traces/viewer.html
|
|
*.log
|
|
|
|
# Database
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# Ollama (if running locally)
|
|
ollama_data/
|
|
|
|
# Temporary & Backup files
|
|
*.tmp
|
|
*.bak
|
|
*.swp
|
|
*~
|
|
*-backup-*.txt
|
|
|
|
# OS-specific
|
|
.DS_Store
|
|
.DS_Store?
|
|
._*
|
|
.Spotlight-V100
|
|
.Trashes
|
|
ehthumbs.db
|
|
Thumbs.db
|
|
Desktop.ini
|