PerryLink/dsh-observe
PerryLink★ 0TypeScriptLast synced: 2026-08-16
OpenTelemetry and Langfuse observability exporter for DeepSeek Harness: turn/step/tool/LLM spans, token and cost metrics, sanitized prompt/completion capture, async batching, bounded offline buffering, retry with backoff
README excerpt
📊 dsh-observe OpenTelemetry and Langfuse observability exporter for DeepSeek Harness. Turn session events into OTLP traces and Langfuse observations — sanitized, buffered, off by default. English · 简体中文 · Español · Português · हिन्दी Compatibility Surface Status Harness DeepSeek Harness 0.1.0-rc.6 Node ^22.19.0 \ \ =24.0.0 Backends OpenTelemetry OTLP/HTTP (traces + metrics, JSON encoding) and Langfuse (LLM observability) — either or both Model Model-agnostic: it exports the session/event stream; no model calls are made What you get dsh-observe turns the harness's session/event stream into standard observability protocols: - Spans — turn, step, tool-call (duration, status, retry derivation), and LLM generation spans, linked into per-turn traces with deterministic ids. - Metrics — per-provider/model token counters, USD cost counters (configurable pricing table), and the optional context-pressure gauge from ctx.tokenMeter . - Sanitized capture — prompt and completion bodies are redacted (structural key names + built-in secret patterns + your patterns) and truncated before anything is queued or sent. - Reliability — async batching (size- and timer-triggered), a bounded durable offline…
View full README on GitHub →