AI/LLM observability: trace prompts, completions, cost, and latency to your dashboard
Project description
Traceflow AI (SDK)
AI/LLM observability: capture prompts, completions, tokens, cost, and latency; send traces to your dashboard.
Install
pip install traceflow-ai[openai]
Use
import traceflow_ai
traceflow_ai.init(endpoint="http://localhost:8000")
# Use openai.chat.completions.create(...) as usual — traces appear in the dashboard
Optional: run the dashboard (or your own ingest API) so traces have somewhere to go.
Nested spans (agents/tools/RAG): Use traceflow_ai.build_trace(..., trace_id=existing_trace_id, parent_span_id=root_span_id, kind="tool") and traceflow_ai.send_trace(...) to attach child spans to a trace. Omit trace_id for a new trace (default).
PyPI
- Package: traceflow-ai
- Import:
import traceflow_ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traceflow_ai-0.3.0.tar.gz.
File metadata
- Download URL: traceflow_ai-0.3.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e17456a2e4b94cde93a7ff8febe9f56dc2dcba6616d8d441c4e9ba8c38b37d3
|
|
| MD5 |
edde3816b2a6726ce195bd72263c834e
|
|
| BLAKE2b-256 |
59a809dc70db91e938fc6a590cfcfff65b37c9a905519c9a8032b6d3d83f6d18
|
File details
Details for the file traceflow_ai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: traceflow_ai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c01dc83b937b59a200abd907b3c444a8e0cdcff80c2b6153ca2b3fbc74727668
|
|
| MD5 |
aa8c9d526ecf18023c02a7e084b23498
|
|
| BLAKE2b-256 |
05a2062ecf49a309720154e646397f0bdcf36d897ea215c733e6975151566a39
|