dsh-webui-perf
awa-123-cw
DeepSeek Harness WebUI 性能优化开关插件:长代码流式渲染/历史加载/高亮缓存优化,设置面板一键开关(with official-package patches)
PROJECT TOPICS
PROJECT README
Unified plugin-dimension observability (trace / log / metric) for deepseek-harness (dsh).
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.
| 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
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.
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.
| 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.
endpoint and collector
availability.dsh plugin --profile <p> remove dsh-o11y-plugin or set
enabled=false.npm install
npm run typecheck
npm test
npm run build
Contributions welcome; keep the OTel SDK dependency family aligned with dsh's
session-telemetry-otel for community compatibility.
MIT. Report vulnerabilities privately per SECURITY.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。