插件目录 / Developer / dsh-o11y-plugin
dsh-o11y-plugin
未验证 fly3366
功能简介
DeepSeek Harness统一插件可观测性:追踪/日志/指标
未验证 — 尚未实测
DeepSeek Harness统一插件可观测性:追踪/日志/指标 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-o11y-plugin
Unified plugin-dimension observability (trace / log / metric) for
deepseek-harness (dsh).
Overview
dsh ships session-level OTel telemetry but exposes no metric or plugin-scoped
observability to plugins. dsh-o11y-plugin converges that gap: it registers
global OpenTelemetry providers so any plugin using the standard@opentelemetry/api exports traces, metrics, and logs through a single,
consistently configured pipeline, and it bridges dsh session telemetry into
OTel logs. It is intended for plugin authors who want standard,
community-compatible observability without implementing OTel per plugin.
Compatibility
| Item | Value |
|---|---|
| DSH version | @deepseek-ai/dsh 0.1.0-rc.6 (Cordis 4.0.1) |
| Last verified | 2026-08-15 (unit tests against @deepseek-ai/cordis 4.0.1) |
| Node | ^22.19 || >=24 |
| Profiles | headless, web |
Built on the official OpenTelemetry Node.js SDK, the same dependency family as
dsh's session-telemetry-otel.
Install / Uninstall
# install
dsh plugin --profile web add github:fly3366/dsh-o11y-plugin
# disable for one profile
dsh plugin --profile web remove dsh-o11y-plugin
# or disable at runtime via config: enabled=false
The plugin is stateless; removal requires no data cleanup.
Quick start
dsh plugin --profile headless add github:fly3366/dsh-o11y-plugin
# point exports at a collector (optional; silent without one)
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 dsh --profile headless "say hi"
Any plugin that calls trace.getTracer(...) / metrics.getMeter(...) /logs.getLogger(...) from @opentelemetry/api is then exported automatically.
deepjit is the reference consumer,
emitting pipeline counters and GenAI (gen_ai.*) LLM spans.
Configuration
| Key | Default | Description |
|---|---|---|
enabled |
true |
master switch |
serviceName |
'' (→ OTEL_SERVICE_NAME → dsh-plugin) |
OTel resource service.name |
endpoint |
'' (→ OTEL_EXPORTER_OTLP_ENDPOINT → http://localhost:4318) |
OTLP/HTTP endpoint |
enableTraces / enableMetrics / enableLogs |
true |
per-signal toggles |
metricExportIntervalMs |
60000 |
periodic metric export interval |
bridgeSessionTelemetry |
true |
bridge dsh session telemetry into OTel logs |
Sensitive: no credentials are read or stored; only the optional OTLP endpoint is
network-facing.
Permissions & data
- Files: none written; all telemetry is in-memory until exported.
- Network: OTLP/HTTP to the configured endpoint only; silent drop when no
collector is reachable. - Credentials: none.
- User data: session-telemetry records are observed in-memory (when
bridging) and forwarded as OTel logs; nothing is persisted by this plugin.
Troubleshooting
- No collector at the endpoint → batches are dropped silently (expected).
- Export errors → surface via OTel diag; verify
endpointand collector
availability. - Roll back with
dsh plugin --profile <p> remove dsh-o11y-pluginor setenabled=false.
Development
npm install
npm run typecheck
npm test
npm run build
Contributions welcome; keep the OTel SDK dependency family aligned with dsh'ssession-telemetry-otel for community compatibility.
License & security
MIT. Report vulnerabilities privately per SECURITY.md.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-o11y-plugin」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:fly3366/dsh-o11y-plugin Headless(CLI)profile:
dsh plugin --profile headless add github:fly3366/dsh-o11y-plugin 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。
备注:验证: runtime-fail (0.1.0-rc.6) 浏览全部待验证失败 →
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。