Tracewise
Tracewise is a Python SDK for observability, tracing, and evaluation of LLM applications, designed to be embedded directly into your codebase as a git submodule.
It provides:
- End-to-end tracing for LLM calls and agent workflows
- Unified evaluation across popular LLM evaluation frameworks
- Lightweight HTTP exporters
- Scalable storage with ClickHouse and Postgres
- First-class integrations with LangChain-based LLMs
Why Tracewise?
- 🧩 Submodule-first: Version observability alongside your application code
- 🔍 Deep tracing: Automatic instrumentation for LLM calls and workflows
- 📊 Evaluation-native: Built-in support for multiple evaluation frameworks
- ⚡ Low overhead: Async, HTTP-based exporters
- 🧠 LLM-aware: Native wrappers for LangChain + Groq / OpenAI
Features
Tracing
- Automatic tracing via decorators
- LLM call metadata (model, tokens, latency)
- Workflow and agent-level traces
Evaluation
Integrated support for:
- DeepEval
- Ragas
- Arize Phoenix
- Tracewise Evaluation (agent & tool-based evaluation)
Storage
- ClickHouse → traces, spans, metrics
- PostgreSQL → users, projects, API keys
LLM Integrations
- LangChain-compatible wrappers
- Supported providers:
- Groq
- OpenAI
- Azure OpenAI
Installation (Git Submodule – Recommended)
Tracewise is intended to be used as a git submodule, not as a standalone pip dependency.
git submodule add https://github.com/your-org/tracewise.git tracewise
Quick Start
from tracewise.llm.langchain import ChatGroq
from tracewise import observe, init_observability
from tracewise.llm.openai import OpenAI, AzureOpenAI
# Use the observe decorator
@observe(agent_name)
def my_llm_function(prompt: str) -> str:
# Your LLM logic here
# Langchain
llm = ChatGroq(model="openai/gpt-oss/120b", temperature=0)
response = llm.invoke("Hi")
# OpenAI
llm = OpenAI()
response = llm.responses.create(
model="gpt-4o",
messages=[{
"role": "assistant", "content": "You're a helpful agent",
"role": "user", "content": "Hi"
}]
)
# Azure OpenAI
llm = AzureOpenAI(api_key="", azure_endpoint="", api_version="")
response = llm.chat.completions.create(
model=<deployment_name>,
messages=[{
"role": "assistant", "content": "You're a helpful agent",
"role": "user", "content": "Hi"
}]
)
return response
Configuration
Configure via environment variables:
export TRACEWISE_URL=http://localhost:8000
export TRACEWISE_API_KEY=your-api-key
Or programmatically:
init_observability(url="http://localhost:8000", api_key="your-api-key")
Git Submodule Usage
This repository can be used as a git submodule in your project:
git submodule add https://github.com/your-org/tracewise.git path/to/tracewise
Then install as an editable package:
pip install -e path/to/tracewise
Development
Setup
# Clone the repository
git clone https://github.com/your-org/tracewise.git
cd tracewise
# Install dependencies
pip install -e .
Testing
pytest
Linting
ruff check .
mypy src/
Metadata
Release files for tracewise-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracewise_ai-0.1.0.tar.gz | 247.6 kB | With provenance | Details for tracewise_ai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracewise_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tracewise_ai-0.1.0-py3-none-any.whl |
Total release size: 300.4 kB
Release files / tracewise_ai-0.1.0.tar.gz
| Download URL | tracewise_ai-0.1.0.tar.gz |
|---|---|
| Size | 247.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9ed3fee07c0255d25f7751381ea56f7efbcc0aa79c41e57b851e021c4e3d3d7
|
|
BLAKE2b-256 checksum How to use checksums |
d622049ce431b80f630dfafe53bf696e8fc475c77d03de088c8ec3d51e3c3ce2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logRelease files / tracewise_ai-0.1.0-py3-none-any.whl
| Download URL | tracewise_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 52.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09f931edc8174719ee5813bbbddaad3104cd80f5e8d1f2d6d3985a9f9b24f246
|
|
BLAKE2b-256 checksum How to use checksums |
018a3194b97b704fa40dda1c2a8a8d065feca9535ee0d99de1c37f0900e526c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logSecurity for tracewise-ai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tracewise_ai-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.