TtTRz/dsh-langfuse0

dsh-langfuse

适用于 DSH 的 Langfuse LLM 可观测性插件:为每个会话提供 OpenTelemetry 追踪树,支持反馈评分与子代理谱系追踪。

AI 分析

核心用途是监控和调试 DSH 的大模型调用链路。适合需要对 Agent 决策过程、Token 消耗及子代理调用进行深度观测与调优的开发者。

套件
dsh-langfuse
版本
0.1.1
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TtTRz/dsh-langfuse

⚙️ Configuration

FieldDefaultMeaning
modeDISABLEDFULL exports every session live; FEEDBACK_ONLY exports the canonical session log only when feedback is recorded; DISABLED constructs nothing.
exporter.urlFull OTLP traces endpoint (…/api/public/otel/v1/traces). Required unless DISABLED.
exporter.timeoutMillis10000Per-request timeout.
auth.publicKey / auth.secretKeyLangfuse project key pair (Basic auth). Required unless DISABLED.
processor{}Passed verbatim to BatchSpanProcessor (scheduledDelayMillis, maxQueueSize, …). Retries (bounded backoff, 6 attempts) live in the exporter.
includeGenerationInputfalseExport langfuse.observation.input (system prompt / tool schemas / model / user prompt).
maxAttributeChars16384Per-attribute payload ceiling; longer payloads are truncated with a …[truncated] marker (the canonical log keeps the full bytes).
shutdownTimeoutMillis3000Deadline on the SDK's shutdown drain.
feedbackScoreNameuser-feedbackLangfuse score name for /feedback pushes.