dsh-langfuse
dsh-langfuse: Langfuse LLM observability for DeepSeek Harness — one OpenTelemetry trace tree per agent session, with feedback scores and subagent lineage.
AI Analysis
核心用途是监控和调试 DSH 的大模型调用链路。适合需要对 Agent 决策过程、Token 消耗及子代理调用进行深度观测与调优的开发者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TtTRz/dsh-langfuseREADME
Read the full README ↗⚙️ Configuration
| Field | Default | Meaning |
|---|---|---|
mode | DISABLED | FULL exports every session live; FEEDBACK_ONLY exports the canonical session log only when feedback is recorded; DISABLED constructs nothing. |
exporter.url | — | Full OTLP traces endpoint (…/api/public/otel/v1/traces). Required unless DISABLED. |
exporter.timeoutMillis | 10000 | Per-request timeout. |
auth.publicKey / auth.secretKey | — | Langfuse project key pair (Basic auth). Required unless DISABLED. |
processor | {} | Passed verbatim to BatchSpanProcessor (scheduledDelayMillis, maxQueueSize, …). Retries (bounded backoff, 6 attempts) live in the exporter. |
includeGenerationInput | false | Export langfuse.observation.input (system prompt / tool schemas / model / user prompt). |
maxAttributeChars | 16384 | Per-attribute payload ceiling; longer payloads are truncated with a …[truncated] marker (the canonical log keeps the full bytes). |
shutdownTimeoutMillis | 3000 | Deadline on the SDK's shutdown drain. |
feedbackScoreName | user-feedback | Langfuse score name for /feedback pushes. |