krimvp/dsh-otel1

dsh-otel

OpenTelemetry plugin for DeepSeek Harness (dsh) — traces and metrics for agent runs, tools, and model calls

AI 分析

核心用途是收集 DSH 运行时的分布式链路追踪和性能指标。适合需要对 Agent 执行过程进行深度性能调优、瓶颈分析和生产环境监控的系统管理员。

パッケージ
dsh-otel
バージョン
0.0.2
ライセンス
MIT
最終更新
2026/08/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

The config is flat and has exactly four options.

OptionTypeDefaultMeaning
serviceNamestringdshThe service name. OTEL_SERVICE_NAME wins over this option.
endpointstringhttp://localhost:4318The OTLP HTTP base URL. The plugin uses it only when no OTLP endpoint variable is set.
captureContentbooleanfalseRecords the message content, the tool arguments, and the tool result.
useGlobalProvidersbooleanfalsetrue uses the @opentelemetry/api globals. The plugin then sets up no SDK.

A standard environment variable wins over the config option.

VariableEffect
OTEL_EXPORTER_OTLP_ENDPOINTThe base URL for both signals. The plugin then passes no URL to the exporters.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINTThe URL for one signal, used as it is.
OTEL_EXPORTER_OTLP_HEADERS, _TIMEOUT, _COMPRESSION, _CERTIFICATERead by the exporters.
OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTESRead by the plugin through the environment resource detector.
OTEL_SDK_DISABLED=trueThe plugin does nothing.
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=trueTurns the content capture on.
OTEL_BSP_*, OTEL_TRACES_SAMPLERRead by @opentelemetry/sdk-trace-base.

The content capture is off by default. The message content can hold user data and personal data.