tracecraft 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. tracecraft-0.2.0/.devcontainer/Dockerfile +38 -0
  2. tracecraft-0.2.0/.devcontainer/devcontainer.json +62 -0
  3. tracecraft-0.2.0/.gitignore +175 -0
  4. tracecraft-0.2.0/.release-please-manifest.json +3 -0
  5. tracecraft-0.2.0/CHANGELOG.md +119 -0
  6. tracecraft-0.2.0/LICENSE +200 -0
  7. tracecraft-0.2.0/PKG-INFO +432 -0
  8. tracecraft-0.2.0/README.md +267 -0
  9. tracecraft-0.2.0/SECURITY.md +118 -0
  10. tracecraft-0.2.0/pyproject.toml +390 -0
  11. tracecraft-0.2.0/release-please-config.json +15 -0
  12. tracecraft-0.2.0/src/tracecraft/__init__.py +90 -0
  13. tracecraft-0.2.0/src/tracecraft/adapters/__init__.py +28 -0
  14. tracecraft-0.2.0/src/tracecraft/adapters/claude_sdk.py +415 -0
  15. tracecraft-0.2.0/src/tracecraft/adapters/guardrails.py +224 -0
  16. tracecraft-0.2.0/src/tracecraft/adapters/langchain.py +566 -0
  17. tracecraft-0.2.0/src/tracecraft/adapters/llamaindex.py +703 -0
  18. tracecraft-0.2.0/src/tracecraft/adapters/pydantic_ai.py +352 -0
  19. tracecraft-0.2.0/src/tracecraft/alerting/__init__.py +81 -0
  20. tracecraft-0.2.0/src/tracecraft/alerting/quality.py +464 -0
  21. tracecraft-0.2.0/src/tracecraft/alerting/webhooks.py +499 -0
  22. tracecraft-0.2.0/src/tracecraft/cli/__init__.py +1 -0
  23. tracecraft-0.2.0/src/tracecraft/cli/main.py +885 -0
  24. tracecraft-0.2.0/src/tracecraft/cli/prompts.py +219 -0
  25. tracecraft-0.2.0/src/tracecraft/comparison/__init__.py +21 -0
  26. tracecraft-0.2.0/src/tracecraft/comparison/models.py +74 -0
  27. tracecraft-0.2.0/src/tracecraft/comparison/prompts.py +261 -0
  28. tracecraft-0.2.0/src/tracecraft/comparison/runner.py +329 -0
  29. tracecraft-0.2.0/src/tracecraft/contrib/__init__.py +30 -0
  30. tracecraft-0.2.0/src/tracecraft/contrib/async_helpers.py +361 -0
  31. tracecraft-0.2.0/src/tracecraft/contrib/aws.py +350 -0
  32. tracecraft-0.2.0/src/tracecraft/contrib/azure.py +426 -0
  33. tracecraft-0.2.0/src/tracecraft/contrib/executors.py +160 -0
  34. tracecraft-0.2.0/src/tracecraft/contrib/gcp.py +624 -0
  35. tracecraft-0.2.0/src/tracecraft/contrib/memory.py +212 -0
  36. tracecraft-0.2.0/src/tracecraft/core/__init__.py +5 -0
  37. tracecraft-0.2.0/src/tracecraft/core/config.py +336 -0
  38. tracecraft-0.2.0/src/tracecraft/core/context.py +210 -0
  39. tracecraft-0.2.0/src/tracecraft/core/env_config.py +454 -0
  40. tracecraft-0.2.0/src/tracecraft/core/fixtures.py +995 -0
  41. tracecraft-0.2.0/src/tracecraft/core/init.py +390 -0
  42. tracecraft-0.2.0/src/tracecraft/core/models.py +142 -0
  43. tracecraft-0.2.0/src/tracecraft/core/runtime.py +1186 -0
  44. tracecraft-0.2.0/src/tracecraft/datasets/__init__.py +24 -0
  45. tracecraft-0.2.0/src/tracecraft/datasets/converters.py +566 -0
  46. tracecraft-0.2.0/src/tracecraft/exporters/__init__.py +32 -0
  47. tracecraft-0.2.0/src/tracecraft/exporters/async_pipeline.py +592 -0
  48. tracecraft-0.2.0/src/tracecraft/exporters/base.py +55 -0
  49. tracecraft-0.2.0/src/tracecraft/exporters/console.py +149 -0
  50. tracecraft-0.2.0/src/tracecraft/exporters/html.py +443 -0
  51. tracecraft-0.2.0/src/tracecraft/exporters/jsonl.py +91 -0
  52. tracecraft-0.2.0/src/tracecraft/exporters/mlflow.py +335 -0
  53. tracecraft-0.2.0/src/tracecraft/exporters/otlp.py +352 -0
  54. tracecraft-0.2.0/src/tracecraft/exporters/rate_limited.py +173 -0
  55. tracecraft-0.2.0/src/tracecraft/exporters/retry.py +221 -0
  56. tracecraft-0.2.0/src/tracecraft/instrumentation/__init__.py +27 -0
  57. tracecraft-0.2.0/src/tracecraft/instrumentation/auto.py +702 -0
  58. tracecraft-0.2.0/src/tracecraft/instrumentation/context_managers.py +7 -0
  59. tracecraft-0.2.0/src/tracecraft/instrumentation/decorators.py +753 -0
  60. tracecraft-0.2.0/src/tracecraft/integrations/__init__.py +25 -0
  61. tracecraft-0.2.0/src/tracecraft/integrations/langfuse_prompts.py +378 -0
  62. tracecraft-0.2.0/src/tracecraft/otel/__init__.py +53 -0
  63. tracecraft-0.2.0/src/tracecraft/otel/backends.py +175 -0
  64. tracecraft-0.2.0/src/tracecraft/otel/instrumentors.py +152 -0
  65. tracecraft-0.2.0/src/tracecraft/otel/setup.py +207 -0
  66. tracecraft-0.2.0/src/tracecraft/playground/__init__.py +18 -0
  67. tracecraft-0.2.0/src/tracecraft/playground/comparison.py +448 -0
  68. tracecraft-0.2.0/src/tracecraft/playground/providers/__init__.py +18 -0
  69. tracecraft-0.2.0/src/tracecraft/playground/providers/anthropic.py +210 -0
  70. tracecraft-0.2.0/src/tracecraft/playground/providers/base.py +172 -0
  71. tracecraft-0.2.0/src/tracecraft/playground/providers/openai.py +178 -0
  72. tracecraft-0.2.0/src/tracecraft/playground/runner.py +372 -0
  73. tracecraft-0.2.0/src/tracecraft/processors/__init__.py +1 -0
  74. tracecraft-0.2.0/src/tracecraft/processors/base.py +194 -0
  75. tracecraft-0.2.0/src/tracecraft/processors/enrichment.py +477 -0
  76. tracecraft-0.2.0/src/tracecraft/processors/redaction.py +285 -0
  77. tracecraft-0.2.0/src/tracecraft/processors/sampling.py +166 -0
  78. tracecraft-0.2.0/src/tracecraft/propagation/__init__.py +50 -0
  79. tracecraft-0.2.0/src/tracecraft/propagation/cloudtrace.py +279 -0
  80. tracecraft-0.2.0/src/tracecraft/propagation/w3c.py +193 -0
  81. tracecraft-0.2.0/src/tracecraft/propagation/xray.py +283 -0
  82. tracecraft-0.2.0/src/tracecraft/py.typed +0 -0
  83. tracecraft-0.2.0/src/tracecraft/receiver/__init__.py +15 -0
  84. tracecraft-0.2.0/src/tracecraft/receiver/importer.py +663 -0
  85. tracecraft-0.2.0/src/tracecraft/receiver/server.py +308 -0
  86. tracecraft-0.2.0/src/tracecraft/schema/__init__.py +1 -0
  87. tracecraft-0.2.0/src/tracecraft/schema/canonical.py +79 -0
  88. tracecraft-0.2.0/src/tracecraft/schema/openinference.py +101 -0
  89. tracecraft-0.2.0/src/tracecraft/schema/otel_genai.py +205 -0
  90. tracecraft-0.2.0/src/tracecraft/storage/__init__.py +188 -0
  91. tracecraft-0.2.0/src/tracecraft/storage/_cache.py +89 -0
  92. tracecraft-0.2.0/src/tracecraft/storage/azuremonitor.py +443 -0
  93. tracecraft-0.2.0/src/tracecraft/storage/base.py +431 -0
  94. tracecraft-0.2.0/src/tracecraft/storage/cloudtrace.py +414 -0
  95. tracecraft-0.2.0/src/tracecraft/storage/datadog.py +449 -0
  96. tracecraft-0.2.0/src/tracecraft/storage/jsonl.py +232 -0
  97. tracecraft-0.2.0/src/tracecraft/storage/mlflow.py +387 -0
  98. tracecraft-0.2.0/src/tracecraft/storage/sqlite.py +1981 -0
  99. tracecraft-0.2.0/src/tracecraft/storage/xray.py +466 -0
  100. tracecraft-0.2.0/src/tracecraft/tui/__init__.py +43 -0
  101. tracecraft-0.2.0/src/tracecraft/tui/app.py +1263 -0
  102. tracecraft-0.2.0/src/tracecraft/tui/data/__init__.py +6 -0
  103. tracecraft-0.2.0/src/tracecraft/tui/data/loader.py +348 -0
  104. tracecraft-0.2.0/src/tracecraft/tui/data/store.py +223 -0
  105. tracecraft-0.2.0/src/tracecraft/tui/screens/__init__.py +24 -0
  106. tracecraft-0.2.0/src/tracecraft/tui/screens/comparison_prompt_picker.py +180 -0
  107. tracecraft-0.2.0/src/tracecraft/tui/screens/comparison_result_viewer.py +350 -0
  108. tracecraft-0.2.0/src/tracecraft/tui/screens/confirm_delete.py +146 -0
  109. tracecraft-0.2.0/src/tracecraft/tui/screens/help_screen.py +175 -0
  110. tracecraft-0.2.0/src/tracecraft/tui/screens/llm_picker.py +143 -0
  111. tracecraft-0.2.0/src/tracecraft/tui/screens/notes_editor.py +169 -0
  112. tracecraft-0.2.0/src/tracecraft/tui/screens/playground.py +579 -0
  113. tracecraft-0.2.0/src/tracecraft/tui/screens/setup_wizard.py +1868 -0
  114. tracecraft-0.2.0/src/tracecraft/tui/styles/__init__.py +1 -0
  115. tracecraft-0.2.0/src/tracecraft/tui/theme.py +337 -0
  116. tracecraft-0.2.0/src/tracecraft/tui/widgets/__init__.py +16 -0
  117. tracecraft-0.2.0/src/tracecraft/tui/widgets/filter_bar.py +414 -0
  118. tracecraft-0.2.0/src/tracecraft/tui/widgets/io_viewer.py +566 -0
  119. tracecraft-0.2.0/src/tracecraft/tui/widgets/metrics_panel.py +187 -0
  120. tracecraft-0.2.0/src/tracecraft/tui/widgets/trace_table.py +784 -0
  121. tracecraft-0.2.0/src/tracecraft/tui/widgets/waterfall_view.py +406 -0
  122. tracecraft-0.2.0/uv.lock +6949 -0
@@ -0,0 +1,38 @@
1
+ # Development container for TraceCraft
2
+ FROM mcr.microsoft.com/devcontainers/python:1-3.11-bookworm
3
+
4
+ # Set environment variables
5
+ ENV PYTHONDONTWRITEBYTECODE=1 \
6
+ PYTHONUNBUFFERED=1 \
7
+ PIP_NO_CACHE_DIR=1 \
8
+ PIP_DISABLE_PIP_VERSION_CHECK=1
9
+
10
+ # Install uv package manager
11
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
12
+
13
+ # Install additional system dependencies
14
+ RUN apt-get update && apt-get install -y --no-install-recommends \
15
+ curl \
16
+ git \
17
+ make \
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ # Configure uv
21
+ ENV UV_LINK_MODE=copy \
22
+ UV_COMPILE_BYTECODE=1 \
23
+ UV_PYTHON_DOWNLOADS=never
24
+
25
+ # Set working directory
26
+ WORKDIR /workspace
27
+
28
+ # Create and configure virtual environment directory
29
+ RUN mkdir -p /workspace/.venv && chown vscode:vscode /workspace/.venv
30
+
31
+ # Switch to non-root user
32
+ USER vscode
33
+
34
+ # Configure shell for uv
35
+ RUN echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc
36
+
37
+ # Default command
38
+ CMD ["sleep", "infinity"]
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "TraceCraft Development",
3
+ "build": {
4
+ "dockerfile": "Dockerfile",
5
+ "context": ".."
6
+ },
7
+ "features": {
8
+ "ghcr.io/devcontainers/features/git:1": {},
9
+ "ghcr.io/devcontainers/features/github-cli:1": {}
10
+ },
11
+ "customizations": {
12
+ "vscode": {
13
+ "extensions": [
14
+ "ms-python.python",
15
+ "ms-python.vscode-pylance",
16
+ "charliermarsh.ruff",
17
+ "ms-python.mypy-type-checker",
18
+ "tamasfe.even-better-toml",
19
+ "redhat.vscode-yaml",
20
+ "eamodio.gitlens",
21
+ "github.copilot"
22
+ ],
23
+ "settings": {
24
+ "python.defaultInterpreterPath": "/workspace/.venv/bin/python",
25
+ "python.terminal.activateEnvironment": true,
26
+ "[python]": {
27
+ "editor.defaultFormatter": "charliermarsh.ruff",
28
+ "editor.formatOnSave": true,
29
+ "editor.codeActionsOnSave": {
30
+ "source.organizeImports": "explicit",
31
+ "source.fixAll": "explicit"
32
+ }
33
+ },
34
+ "ruff.organizeImports": true,
35
+ "ruff.fixAll": true,
36
+ "mypy-type-checker.args": ["--config-file=pyproject.toml"],
37
+ "python.testing.pytestEnabled": true,
38
+ "python.testing.pytestArgs": ["tests"],
39
+ "files.exclude": {
40
+ "**/__pycache__": true,
41
+ "**/.pytest_cache": true,
42
+ "**/.mypy_cache": true,
43
+ "**/.ruff_cache": true,
44
+ "**/*.egg-info": true
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "postCreateCommand": "uv sync --all-extras && uv run pre-commit install",
50
+ "postStartCommand": "uv sync",
51
+ "remoteUser": "vscode",
52
+ "containerEnv": {
53
+ "PYTHONDONTWRITEBYTECODE": "1",
54
+ "PYTHONUNBUFFERED": "1"
55
+ },
56
+ "mounts": [
57
+ "source=${localWorkspaceFolder}/.venv,target=/workspace/.venv,type=bind,consistency=cached"
58
+ ],
59
+ "forwardPorts": [],
60
+ "portsAttributes": {},
61
+ "runArgs": ["--init"]
62
+ }
@@ -0,0 +1,175 @@
1
+ # ============================================================
2
+ # Python
3
+ # ============================================================
4
+
5
+ # Byte-compiled / optimized / DLL files
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+
10
+ # C extensions
11
+ *.so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+
31
+ # PyInstaller
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # ============================================================
40
+ # Testing & Coverage
41
+ # ============================================================
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ .benchmarks/
55
+
56
+ # ============================================================
57
+ # Type checking / Linting
58
+ # ============================================================
59
+ .mypy_cache/
60
+ .dmypy.json
61
+ dmypy.json
62
+ .pytype/
63
+ .pyre/
64
+ .ruff_cache/
65
+
66
+ # ============================================================
67
+ # Environments & Secrets
68
+ # ============================================================
69
+ .env
70
+ .env.*
71
+ !.env.example
72
+ .venv
73
+ env/
74
+ venv/
75
+ ENV/
76
+ env.bak/
77
+ venv.bak/
78
+ .python-version
79
+
80
+ # Security - never commit credentials or certificates
81
+ *.pem
82
+ *.key
83
+ *.crt
84
+ *.p12
85
+ *.pfx
86
+ *.jks
87
+
88
+ # ============================================================
89
+ # IDEs & Editors
90
+ # ============================================================
91
+ .idea/
92
+ .vscode/
93
+ *.swp
94
+ *.swo
95
+ *~
96
+ .project
97
+ .settings/
98
+ .classpath
99
+ *.sublime-project
100
+ *.sublime-workspace
101
+
102
+ # ============================================================
103
+ # OS
104
+ # ============================================================
105
+ .DS_Store
106
+ .DS_Store?
107
+ ._*
108
+ Thumbs.db
109
+ ehthumbs.db
110
+ Desktop.ini
111
+
112
+ # ============================================================
113
+ # Package managers
114
+ # ============================================================
115
+
116
+ # uv
117
+ .uv/
118
+
119
+ # Translations
120
+ *.mo
121
+ *.pot
122
+
123
+ # ============================================================
124
+ # AI / Claude Code
125
+ # ============================================================
126
+ # .claude/ is committed for shared commands, skills, agents, and settings.
127
+ # Only personal/local files are ignored:
128
+ .claude/settings.local.json
129
+ .claude/agent-memory-local/
130
+ CLAUDE.local.md
131
+ memories/
132
+
133
+ # ============================================================
134
+ # Jupyter Notebooks
135
+ # ============================================================
136
+ .ipynb_checkpoints/
137
+
138
+ # ============================================================
139
+ # Profiling
140
+ # ============================================================
141
+ *.prof
142
+ *.lprof
143
+ *.cachegrind
144
+
145
+ # ============================================================
146
+ # Logs
147
+ # ============================================================
148
+ *.log
149
+ logs/
150
+
151
+ # ============================================================
152
+ # MkDocs
153
+ # ============================================================
154
+ site/
155
+
156
+ # ============================================================
157
+ # TraceCraft specific
158
+ # ============================================================
159
+ agentdocs/
160
+ tracecraft_logs/
161
+
162
+ # Trace output files
163
+ traces/
164
+ *.jsonl
165
+ *.db
166
+ *.sqlite
167
+ *.sqlite3
168
+
169
+ # Trace/snapshot report HTML (generated by CLI and test runner)
170
+ trace_report.html
171
+ snapshot_report.html
172
+ tui_screenshot.svg
173
+
174
+ # Note: uv.lock IS tracked for reproducible builds
175
+ .oss-eval/
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.0"
3
+ }
@@ -0,0 +1,119 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.2.0](https://github.com/LocalAI/tracecraft/compare/v0.1.0...v0.2.0) (2026-03-02)
9
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * This simplifies TraceCraft to focus solely on tracing.
14
+ * Package renamed from `agenttrace` to `tracecraft`
15
+
16
+ ### Features
17
+
18
+ * Add Azure AI Foundry, AWS Bedrock AgentCore, and GCP Vertex AI integration ([84ab05a](https://github.com/LocalAI/tracecraft/commit/84ab05a21a18a729b3b8a74554f177cde9a12763))
19
+ * **auto:** add framework auto-instrumentation for LangChain and LlamaIndex ([52d7e10](https://github.com/LocalAI/tracecraft/commit/52d7e10a93d342a0258c44e5d6b5c62f1677bd32))
20
+ * **cli,docs:** rename tui command, simplest-path docs, nav restructure ([6f645ed](https://github.com/LocalAI/tracecraft/commit/6f645ed3ba1d502f195969b16d43165fb5591f23))
21
+ * **docs:** add sync script to convert MkDocs to Nextra format ([bdfcbdf](https://github.com/LocalAI/tracecraft/commit/bdfcbdfe72a3232b651a3bedd12de115d89b3772))
22
+ * **docs:** sync MkDocs documentation to Nextra format ([e0e7b07](https://github.com/LocalAI/tracecraft/commit/e0e7b072dd984430f23d76a381b9648a70c6be98))
23
+ * **examples:** add real OpenAI and Anthropic receiver examples ([7d318ec](https://github.com/LocalAI/tracecraft/commit/7d318ec4b33d84c9c0b887d79df38ab68759f7db))
24
+ * **examples:** add variety of trace patterns to receiver demo ([ac503cc](https://github.com/LocalAI/tracecraft/commit/ac503cc46254169cb5a13cb5709d2c053c67f9b3))
25
+ * **examples:** add variety to receiver demo traces ([67ef1ba](https://github.com/LocalAI/tracecraft/commit/67ef1ba7a464740a437906861db10db3984c4fd3))
26
+ * **otel:** add simple setup_exporter() API for seamless OTel configuration ([c83bce7](https://github.com/LocalAI/tracecraft/commit/c83bce7901824820f24d379e393acd2cfcd40431))
27
+ * **receiver:** add cost calculation and improve TUI panel resizing ([735a887](https://github.com/LocalAI/tracecraft/commit/735a88709e089818bf2427eeb1d0aa211f26140b))
28
+ * **receiver:** add OTLP HTTP receiver for live trace ingestion ([3bd99a6](https://github.com/LocalAI/tracecraft/commit/3bd99a66f4cba38a7aa79bfbbe0c4d5e0bdbbc55))
29
+ * Rename package from agenttrace to tracecraft and simplify TUI UX ([65dd6c0](https://github.com/LocalAI/tracecraft/commit/65dd6c098b90a1e227e3fdf2228e6613f7990554))
30
+ * **storage:** add remote trace backends for X-Ray, Cloud Trace, Azure Monitor, DataDog ([3619b6a](https://github.com/LocalAI/tracecraft/commit/3619b6a4a650ef72f7e6190b23af000a96f11e1a))
31
+ * **tui:** add comparison view, notes editor, and confirm delete screens ([4d36ce6](https://github.com/LocalAI/tracecraft/commit/4d36ce6a158d2f04b166276d4c0c80481da8ca58))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **auto:** add provider-specific unpatcher and safer handler cleanup ([bff0290](https://github.com/LocalAI/tracecraft/commit/bff029050e16d8f103adc366bb891f4c57a91fb9))
37
+ * **auto:** improve thread safety and uninstrumentation in AutoInstrumentor ([6b0fd78](https://github.com/LocalAI/tracecraft/commit/6b0fd78890fd77260aa910e641e0ca0401f1c891))
38
+ * **ci:** add --snapshot-warn-unused to prevent unused snapshots failing CI ([2c5866c](https://github.com/LocalAI/tracecraft/commit/2c5866c6117da18c62c3cbbe63386061787c9008))
39
+ * **ci:** fix docs trigger secret guard and scorecard permissions ([5c83128](https://github.com/LocalAI/tracecraft/commit/5c831282ed86e35a30343be3062e3118928aacdd))
40
+ * **ci:** increase test timeout to 30 minutes ([1610654](https://github.com/LocalAI/tracecraft/commit/1610654a049bcb12587bd89a3491f3491c47af37))
41
+ * **ci:** lower coverage threshold to 55% and add test timeout ([a4bf75a](https://github.com/LocalAI/tracecraft/commit/a4bf75a714c032af9e01e0c4b1b2878ac39cbf6b))
42
+ * **ci:** resolve all mypy errors and pip-audit failures ([415e3be](https://github.com/LocalAI/tracecraft/commit/415e3be0c1108d7d753433dc878fd9722ea10f20))
43
+ * **ci:** resolve test deadlock in conftest runtime reset fixture ([85e7cc1](https://github.com/LocalAI/tracecraft/commit/85e7cc1f6b3e9d73b51650e1d2bcf842a17301d5))
44
+ * **ci:** resolve workflow failures across all CI pipelines ([8d3b6b4](https://github.com/LocalAI/tracecraft/commit/8d3b6b4d62953dc75aa74abc13baf4f19fb427ef))
45
+ * construct slack test tokens programmatically to avoid secret scanning ([d63cc21](https://github.com/LocalAI/tracecraft/commit/d63cc21c7437ea4c7358e846ebfed269695a5681))
46
+ * construct stripe test keys programmatically to avoid secret scanning ([5641eb6](https://github.com/LocalAI/tracecraft/commit/5641eb67bfce644ebc8c33cac63f005fb8a09ab2))
47
+ * **deps:** resolve Dependabot security alerts by bumping dependency minimums ([a5c2d92](https://github.com/LocalAI/tracecraft/commit/a5c2d925a594fac0f25343b42f0c3d415e826229))
48
+ * **docs:** correct OTLPReceiver usage in Quick Start ([b364450](https://github.com/LocalAI/tracecraft/commit/b3644507258d59292bb79b0ce5ff58a797fb5101))
49
+ * **docs:** correct two broken internal links ([2369a82](https://github.com/LocalAI/tracecraft/commit/2369a82167c6eed7fab3e6ebb3975fa97d415803))
50
+ * **docs:** handle nested admonitions inside tabs ([90fbe9c](https://github.com/LocalAI/tracecraft/commit/90fbe9ce78c41c38f1795b24fa8b62329cab3299))
51
+ * **examples:** wrap OpenAI calls in parent spans for proper hierarchy ([116d595](https://github.com/LocalAI/tracecraft/commit/116d595590037c8adbdc34649d7fea3c0c1564f3))
52
+ * **otel:** improve robustness and add comprehensive tests ([3a57540](https://github.com/LocalAI/tracecraft/commit/3a57540b86dc1ff9aac421e36f619ab64ef50a9f))
53
+ * **receiver:** improve response accuracy and add SQLite watch test ([2e23cc6](https://github.com/LocalAI/tracecraft/commit/2e23cc6a546e796931d14419d37934f6bd9dcfe1))
54
+ * **receiver:** improve robustness and handle edge cases ([0690a90](https://github.com/LocalAI/tracecraft/commit/0690a9038c04abcb6945a30f0a66d2d33f77239f))
55
+ * **receiver:** populate AgentRun input/output from root step ([01a0fcc](https://github.com/LocalAI/tracecraft/commit/01a0fcc1803d40257b479e763637717ecaeaef99))
56
+ * **receiver:** support OpenAI instrumentation attribute formats ([0b35035](https://github.com/LocalAI/tracecraft/commit/0b35035e9c2e7c20ea9b27821691c14326f84dc8))
57
+ * **release:** prevent major version bumps during pre-1.0 development ([#4](https://github.com/LocalAI/tracecraft/issues/4)) ([c056bd8](https://github.com/LocalAI/tracecraft/commit/c056bd865c63496d1e33ac230a3256718d3cda4c))
58
+ * Remove remaining eval/agent references from help screen ([0d5f177](https://github.com/LocalAI/tracecraft/commit/0d5f1771ed8c4697ba36fc27509507851a0db99f))
59
+ * **tests:** resolve 8 test failures on CI ([c1e4339](https://github.com/LocalAI/tracecraft/commit/c1e433913bc730e3edc9d53c15662fc35164912e))
60
+ * **tests:** use bool() for skipif CI env check to avoid eval error ([ef4dcd7](https://github.com/LocalAI/tracecraft/commit/ef4dcd7728726fc19e0685a727c61c8e6f5a9a65))
61
+ * use obviously fake test secrets to avoid GitHub secret scanning ([a19b2ba](https://github.com/LocalAI/tracecraft/commit/a19b2bad54b4bcaeb12b0ac4db69b8f26385b97c))
62
+
63
+
64
+ ### Documentation
65
+
66
+ * **examples:** add OTLP receiver examples ([9c74fba](https://github.com/LocalAI/tracecraft/commit/9c74fbafd61bbecaf1319e963fab296074756237))
67
+ * **otel:** add comprehensive OpenTelemetry receiver documentation ([23394ba](https://github.com/LocalAI/tracecraft/commit/23394ba8fe83b2be4531fcc8aae55f9dd98ae92b))
68
+ * **otel:** add missing API documentation and advanced usage section ([7c04a5a](https://github.com/LocalAI/tracecraft/commit/7c04a5a0457588010fa3a5d8a7088de3b68f04f5))
69
+ * **otel:** add missing EVALUATION step type to documentation ([c49179c](https://github.com/LocalAI/tracecraft/commit/c49179c32f85bbb641e7a6dc6e1ad8d5a01883d8))
70
+ * **otel:** enhance documentation with comprehensive examples and navigation ([58cad7c](https://github.com/LocalAI/tracecraft/commit/58cad7cd837cec256b76c8a25decac45dc296da7))
71
+ * rename TraceCraft → Trace Craft, update copyright to Local AI ([b0ab6d4](https://github.com/LocalAI/tracecraft/commit/b0ab6d483910546004687754b3378bc9183ba790))
72
+
73
+
74
+ ### Code Refactoring
75
+
76
+ * Remove evaluation and agent functionality ([187541f](https://github.com/LocalAI/tracecraft/commit/187541f8a435136adc4b95aaf49aa09190224217))
77
+
78
+ ## [Unreleased]
79
+
80
+ ### Added
81
+
82
+ - SHA-pinned all GitHub Actions for supply-chain security
83
+ - SBOM generation (CycloneDX) in release workflow
84
+ - Build provenance attestations via `actions/attest-build-provenance`
85
+ - PyPI trusted publishing with attestation support
86
+ - `pip-audit` job in CI for dependency vulnerability scanning
87
+ - Version consistency check between `pyproject.toml` and `__init__.py`
88
+ - OpenSSF Scorecard workflow (weekly + on push to main)
89
+ - CodeQL analysis workflow (weekly + on push/PR to main)
90
+ - sdist excludes in `pyproject.toml` to keep published package minimal
91
+ - Reproducible sdist builds via `reproducible = true`
92
+ - CHANGELOG.md (this file)
93
+
94
+ ### Changed
95
+
96
+ - CI workflow now uses explicit `permissions: contents: read`
97
+ - Release workflow adds `attestations: write` permission
98
+ - Docs deploy trigger workflow now uses SHA-pinned action ref
99
+
100
+ ### Removed
101
+
102
+ - `mlflow.db` and `tui_screenshot.svg` from version control (kept on disk)
103
+
104
+ ## [0.1.0] - 2025-01-01
105
+
106
+ ### Added
107
+
108
+ - Initial release of TraceCraft
109
+ - Core tracing runtime with decorator-based instrumentation
110
+ - Framework adapters for LangChain, LlamaIndex, PydanticAI, and Claude SDK
111
+ - Exporters: console, JSONL, OTLP, MLflow, HTML
112
+ - Processors: redaction, sampling, enrichment
113
+ - Storage backends: SQLite, JSONL, MLflow
114
+ - Textual-based TUI for trace exploration
115
+ - CLI via Typer (`tracecraft` command)
116
+ - MkDocs documentation site
117
+
118
+ [Unreleased]: https://github.com/LocalAI/tracecraft/compare/v0.1.0...HEAD
119
+ [0.1.0]: https://github.com/LocalAI/tracecraft/releases/tag/v0.1.0
@@ -0,0 +1,200 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. Please also get an approval
186
+ from your organization if needed.
187
+
188
+ Copyright 2026 Local AI, LLC
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.