dsh-otel
适用于 DeepSeek Harness 的 OpenTelemetry 插件:为 Agent 运行、工具调用和模型调用提供链路追踪与指标监控。
AI 分析
核心用途是收集 DSH 运行时的分布式链路追踪和性能指标。适合需要对 Agent 执行过程进行深度性能调优、瓶颈分析和生产环境监控的系统管理员。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗Configuration
The config is flat and has exactly four options.
| Option | Type | Default | Meaning |
|---|---|---|---|
serviceName | string | dsh | The service name. OTEL_SERVICE_NAME wins over this option. |
endpoint | string | http://localhost:4318 | The OTLP HTTP base URL. The plugin uses it only when no OTLP endpoint variable is set. |
captureContent | boolean | false | Records the message content, the tool arguments, and the tool result. |
useGlobalProviders | boolean | false | true uses the @opentelemetry/api globals. The plugin then sets up no SDK. |
A standard environment variable wins over the config option.
| Variable | Effect |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | The base URL for both signals. The plugin then passes no URL to the exporters. |
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | The URL for one signal, used as it is. |
OTEL_EXPORTER_OTLP_HEADERS, _TIMEOUT, _COMPRESSION, _CERTIFICATE | Read by the exporters. |
OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTES | Read by the plugin through the environment resource detector. |
OTEL_SDK_DISABLED=true | The plugin does nothing. |
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true | Turns the content capture on. |
OTEL_BSP_*, OTEL_TRACES_SAMPLER | Read by @opentelemetry/sdk-trace-base. |
The content capture is off by default. The message content can hold user data and personal data.