litefuse/dsh-litefuse-plugin0

dsh-litefuse-plugin

Litefuse observability for DeepSeek Harness: every user turn becomes one agent trace with per-call generations, tool spans, and subagent subtrees

包名
dsh-litefuse-plugin
版本
0.1.0
许可证
MIT
最近更新
2026年8月18日

安装

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

Configuration

The install patch reads everything from the environment, so most deployments need no configuration. To override, add an entry to ~/.dsh/profiles//cordis.patch.yml:

- id: litefuse
  config:
    environment: staging
    agentName: My Agent
    requestInput: delta
    tags: [dsh, team-platform]

An id-targeted patch replaces the whole config, so restate the fields you keep.

FieldDefaultMeaning
enabledtruefalse mounts the plugin and exports nothing
baseUrlhttps://litefuse.cloudLitefuse endpoint; the OTLP trace path is appended
publicKeyEnv / secretKeyEnvLITEFUSE_PUBLIC_KEY / LITEFUSE_SECRET_KEYcredential references; LANGFUSE_* is the fallback
environmentproductionLitefuse tracing environment on every span
agentNameDeepSeek Harnessthe name in — Turn N
userId$USERtrace-level user.id
tags[dsh]trace tags, beside the generated model:
releaseoptional release identifier on every trace
requestInputfullfull sends the whole request; delta only the messages added since the last call; none omits inputs
maxValueChars1000000truncation budget per input/output, the trace input included
delegationTools[subagent, subagent_fork]tool names whose in-flight call hosts a subagent container
exportDelayMillis1000how long an ended span waits for company before its batch posts
requestTimeoutMillis10000per-request deadline
shutdownTimeoutMillis3000outer bound on the drain at teardown
logFile$DSH_HOME/litefuse.logthe integration's own log
debug$DSH_LITEFUSE_DEBUGkeep verbose lines

Credentials are references, not values: configuration names an environment variable, and the value comes from the harness credential store (~/.dsh/.credentials.yaml) when one is mounted, otherwise from the process environment that ~/.dsh/.env feeds. Nothing here ever writes a key to a file, and only the public key's first ten characters are ever logged.