独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
C

codealisha99/tracelight

本站为独立目录,非该工具官网;下方信息取自其公开仓库。

LLM observability: a streaming-aware proxy for Anthropic and OpenAI APIs, agent trace trees, cost and latency dashboard. (原文为英文)

装之前:命令归属未核实,仅作参考展示 · 许可证 MIT · 链接可访问

第一步(仅参考,归属未核实):make install # pnpm install + uv sync for the Python SDK tests

更新 2026-11-14
在 GitHub 查看 ↗链接已于 2026-11-17 核查 · HTTP 200 · 打开的是厂商自己的官网
★ 数取值
0 ★ · codealisha99/tracelight · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-11-15 · 最近见到 2026-11-20 · 共见到 6 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 codealisha99/tracelight;我们收录于 2026-11-15;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
README 原文(英文,未翻译) · 在 GitHub 读完整 README →

# tracelight

以下摘录自该仓库的 README(片段)

Live demo: https://tracelight-demo.vercel.app. A read-only dashboard over a committed snapshot, captured by the real proxy from scripted agents against a mock upstream. The proxy and write endpoints return 403.
Landing page: https://tracelight-site.vercel.app. Source is in site/.
LLM and agent observability you can point an SDK at. Change one base URL and every Anthropic or OpenAI call is forwarded untouched and recorded: streamed responses are reconstructed from their SSE chunks, with time to first token, inter-chunk stalls, tokens per second, prompt-cache reads, computed cost, and anomaly flags. Agent runs (LLM calls, tool calls, sub-agents) show as one trace tree, with a dashboard for filtering, metrics, sessions, scores, and a "needs attention" queue.
Small Langfuse / Helicone / LangSmith in TypeScript, with SQLite storage, a Python SDK, and a React dashboard. Inspired by langfuse/langfuse, Helicone/helicone, Arize-ai/phoenix, and the OpenTelemetry GenAI conventions. The design is my own; no code is copied.
## Quickstart
Keyless demo first. It needs no API keys: a mock upstream stands in for api.anthropic.com and api.openai.com.
bash
make install # pnpm install + uv sync for the Python SDK tests
make test # vitest (unit, proxy, SDK, real-SDK compatibility) + pytest
make demo # mock upstream :4402, tracelight :4400, scripted agent, dashboard
# open http://127.0.0.1:4400 (Ctrl-C stops the demo)
make demo runs a support agent through the proxy using the official @anthropic-ai/sdk. It makes a tool-using plan, a slow-first-token answer, a sub-agent with a slow stream, a failing tool, and a rate-limited call, plus a second session with prompt caching. Then it attaches an eval score and a user score. In the dashboard you get the trace tree and waterfall, the flagged failures, and the metrics page.
### Real traffic
Run the server, then point your SDK at it. Upstreams default to the real APIs.
bash
pnpm server # tracelight on :4400 (TRACELIGHT_DB defaults to ./data/tracelight.db)
ts
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({ baseURL: 'http://127.0.0.1:4400/anthropic' }); // key stays in your env
python
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:4400/openai/v1")
Agent tracing, so calls and steps form one tree:
ts
import { configure, currentHeaders, span, trace } from './src/sdk/tracelight.js';
configure({ baseUrl: 'http://127.0.0.1:4400' });
await trace('support-agent', async () => {
await client.messages.create(params, { headers: currentHeaders() }); // LLM span attaches under the run
await span('search_docs', () => searchDocs(q), { input: { q } });
}, { sessionId: 'user-42' });
python
import tracelight
tracelight.configure("http://127.0.0.1:4400")
with tracelight.trace("support-agent", session_id="user-42"):
client.chat.completions.create(..., extra_headers=tracelight.headers())
Set TRACELIGHT_REDACT=email,credit_card to redact PII in stored payloads. See .env.example.
## Architecture
mermaid
flowchart LR
A[Agent code Anthropic / OpenAI SDK] -->|base URL| P[Proxy :4400]
T[TS / Python SDK trace · span] -->|POST /api/spans| API
P -->|raw bytes, no buffering| U[(Upstream API)]
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/codealisha99-tracelight/)
来源
github · https://github.com/codealisha99/tracelight
按领域浏览
开源项目
收录于
今天

更多条目

全部 1,875 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引