jwuthri-cloud/Tracely-ai
Self-hosted OTLP pipeline that turns agent failures into replayable CI gates
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Tracely is a self-hosted, asynchronous observability and evaluation stack. The tracelyai-sdk and other OTLP/HTTP exporters send to FastAPI at POST /v1/traces. The API persists the payload to MinIO/S3 before dispatching work through Redis and Celery. Workers map OpenTelemetry data, update the PostgreSQL registry, write events to ClickHouse, and then run evaluation, failure clustering, and alerting.
ClickHouse stores traces and scores in ReplacingMergeTree tables and uses server-side async_insert instead of a process-local buffer shared across workers. PostgreSQL with pgvector handles the transactional registry through SQLAlchemy 2.0 and Alembic. A Python 3.12+ uv workspace separates backend/, workers/, and sdk/; the Next.js 15 frontend uses React Flow for visual workflows. OTLP is the ingestion contract, with support for gen_ai.*, OpenInference, and Tracely-specific agent and conversation attributes.
Key Capabilities & Differentiators
Structural checks and LLM judges evaluate conversations, runs, or individual spans. Results appear as trace-table columns and update over SSE. Evaluators support agent and environment targeting, deterministic sampling, and outputs including scores, booleans, text, and JSON-schema results. Structural signatures and semantic embeddings group failures for triage, while human calibration distinguishes judges that miss failures from those that flag too many runs. The Python SDK can auto-instrument OpenAI, Anthropic, Google, Mistral, and LangChain integrations.
Promoting a failure packages its inputs and recorded model and tool outputs into fixtures, with a contract that the case fails on old code and passes on the fix. The CI paths are distinct: offline fixture replay, multi-turn scenarios against a registered HTTP endpoint, and gating existing tracely.env=ci traces by matching inputs to promoted cases. tracely gate can return a nonzero exit, publish a commit status, and update a PR comment; repository merge rules determine whether the verdict actually blocks a merge.
Trade-offs & Limitations
The decision point versus a commercial alternative such as LangSmith is whether production-derived regression fixtures and control of the deployment are worth owning the stack. Blob-first ingestion keeps the original payload independent of the derived event rows, but debugging a missing trace can involve object storage, the queue, workers, and ClickHouse. Keeping full input and output payloads also turns retention, access control, and redaction into operational requirements: sensitive content in a trace can carry over into its fixture bundle.
Recorded fixtures make it possible to test code paths against the same model and tool outputs without live calls. They cannot tell you whether the live model has drifted, an external tool has changed, or a new execution path will receive the responses it expects. Keep live endpoint scenarios or online evaluation where those risks matter, and budget for model calls if you use LLM judges. The MIT license permits commercial self-hosting under its notice terms; it does not eliminate the work of operating the stack or reviewing data sent to external providers.
Hardware & Deployment Guide
Docker and Docker Compose run the full API, worker, frontend, PostgreSQL, ClickHouse, Redis, and MinIO stack. Run docker compose --profile demo up -d --build --wait for seeded traces, cases, and gate results. The UI defaults to port 3001 and the API to 8000; TRACELY_WEB_PORT and TRACELY_BACKEND_PORT override them. Local development adds Python 3.12+ with uv and Node 20+ with pnpm. The Celery worker does not hot-reload.
Deployment paths include Railway, Coolify via docker-compose.coolify.yml, and Kubernetes via deploy/eks/README.md. For production, replace the demo ingest key, configure SESSION_SECRET and SECRETS_ENCRYPTION_KEY, and plan backups and retention. Size ClickHouse and object storage for trace volume and retention, and Celery for ingestion bursts and evaluation concurrency. ClickHouse’s internal logs have no built-in TTL in this setup; a nightly sweep limits their growth. No GitHub release is listed, so test upgrades and migrations against a pinned revision before rolling them out.
Teams already collecting agent traces that want to turn recurring production failures into repeatable PR checks and can operate the backing services.
You only need hosted dashboards, cannot retain model and tool payloads even after redaction, or need live model behavior validated on every run rather than fixture-based regression coverage.
Quick Start & Installation
git clone https://github.com/jwuthri-cloud/Tracely-ai && cd Tracely docker compose --profile demo up -d --build --wait open http://localhost:3001
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Tracely-ai ★ | 848 | +7 | Python | MIT | Self-hosted OTLP pipeline that turns agent failures into replayable CI gates |
| langfuse | 38.2k | +282 | TypeScript | — | OpenTelemetry platform for agent tracing and evals, with an AI gateway |
| opik | 23.6k | +50 | Java | Apache-2.0 | Self-hostable observability platform for tracing and evaluating LLM and agent wo |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/jwuthri-cloud/Tracely-ai.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Tracely-ai
How do I connect an existing agent without changing frameworks?
POST /v1/traces with a bearer ingest key. The ingest path reads standard gen_ai.* and OpenInference attributes; add Tracely’s agent, conversation, turn, and environment attributes where you need richer grouping or CI matching. An HTTP scenario can exercise a non-Python agent without importing the SDK into that agent.Do I need a GPU, and what should I size first?
Can a company self-host it, and what compliance work remains?
When would I choose Tracely over LangSmith?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy