[Released] LoongSuite OpenTelemetry GenAI Observability Plugin for DeepSeek Harness #1699
Replies: 4 comments
|
我维护上游的 先说清楚: 但日志回答的是"发生了什么",回答不了"时间和钱花在哪了"。后者是一棵树的问题,而日志是一串点:
这些问题的答案在事件之间的父子关系和时间区间里。事件账本本身是扁平的,谁想回答就得自己重建一次 第二个意义是复用已有的工具投入。Jaeger、Grafana Tempo、SigNoz、Langfuse 这些后端已经把 trace 的 第三个意义是跨系统串联。DSH 只是更大链路里的一跳——CI 任务调起 agent、agent 调 MCP 工具、 所以我们的判断是:logs 和 trace 不是二选一,而是回答不同问题的两种数据,生态里现在只有前者。trace 是 I maintain To be clear first — the OTLP logs from But logs answer what happened. They do not answer where the time and the money went. That is a
The answers live in the parent-child relationships and the intervals between events. An event The second reason is reuse of tooling that already exists. Jaeger, Grafana Tempo, SigNoz and Langfuse The third reason is stitching across systems. A DSH run is increasingly one hop in a longer path — a So our view is that logs and traces are not an either/or: they answer different questions, and the |
Update: stable version 0.1.1 is now availableThe standalone plugin discussed here has been implemented and released as a stable package:
Install the current stable release into a DSH profile: dsh plugin --profile web add @loongsuite/dsh-pluginThe current stable release is Feedback on the DSH lifecycle mapping, GenAI semantics, and backend compatibility is very welcome. 进展更新:正式版本 0.1.1 已发布本讨论中的独立插件已经完成实现并发布稳定版本:
安装当前正式版本: dsh plugin --profile web add @loongsuite/dsh-plugin当前稳定版本为 |
|
Update: To keep up with the npm package name, the latest Github url for loongsuite dsh plugin has been migrated to: https://github.com/loongsuite/dsh-plugin |
|
OpenTelemetry GenAI 可观测性——session/turn/step/LLM/tool 生命周期数据接 OTel,是生产级观测的正路(比日志强太多)。 已收录进手册生态章节 + 第 6 章(评测/观测可呼应):https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/07-ecosystem.md |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
背景
DeepSeek Harness(DSH)采用“一切皆插件”的架构,并提供完整的 session、turn、step、LLM 和 tool 生命周期数据。仓库目前已经包含
dsh-session-telemetry-otel,可以通过 OTLP 导出结构化日志;但如果想在可观测后端中直接查看一次 Agent 执行里的模型调用、推理步骤、工具调用、Token 和耗时关系,还缺少一棵标准化的 GenAI Trace 树。我们计划为 DeepSeek Harness 开发一个独立、开源的 LoongSuite 可观测插件,想先向维护者和社区征求对方案及集成方式的意见。
LoongSuite 是什么
LoongSuite 是基于 OpenTelemetry 的开源可观测数据采集体系,并增强了生成式 AI 与 Agent 场景的语义表达。这个项目希望把 LoongSuite 的 OpenTelemetry GenAI 可观测能力带到 DeepSeek Harness,同时保持采集协议、部署方式和后端选择的开放性。
插件代码与文档将托管在独立仓库:
loongsuite/dsh-plugin。方案定位
我们希望提供一个真正的 DSH 原生插件,而不是修改 Harness 核心代码、解析终端输出,或依赖额外的本地采集进程:
ENTRY → AGENT → STEP → LLM / TOOLTrace;目标 Trace 结构示例:
数据通过标准 OTLP 输出,可发送到任何兼容 OTLP 的开源或商业后端,例如 OpenTelemetry Collector、Jaeger、Grafana Tempo、SigNoz 和 Langfuse。不同后端对 GenAI 专用字段和 UI 的展示能力可能不同,但底层数据与传输协议保持开放、标准化。
如何使用(计划接口)
项目目前处于方案与实现准备阶段。首个版本发布后,用户可以从 DSH 插件市场或命令行独立安装:
然后在 DSH profile 中配置 OTLP endpoint:
启动或重启 DSH 后,插件会自动采集 Agent 运行数据并上报。用户可以在 Jaeger、Grafana Tempo、SigNoz、Langfuse 等兼容后端中查看会话、模型调用和工具调用链路。OpenTelemetry Collector 可以作为可选的转发与处理层,但不是使用插件的必要条件。
我们也计划支持标准 OpenTelemetry 环境变量,例如
OTEL_EXPORTER_OTLP_ENDPOINT、OTEL_EXPORTER_OTLP_HEADERS和OTEL_SERVICE_NAME,便于容器与自动化部署。与现有能力的关系
这不是对现有
dsh-session-telemetry-otel的简单重复:dsh-plugin-langfuse证明了从 DSH session 数据构建 Trace 的可行性;LoongSuite 方案的差异是使用标准 OTLP、后端无关,并作为可独立安装的 DSH 插件发布。实现计划通过 DSH 的公开事件和插件生命周期进行旁观式采集,不占用或替换官方
sessionTelemetrybackend,因此目标是能够与现有 OTLP Logs 后端同时运行。隐私与可靠性原则
如果方向得到认可,我们会在
loongsuite/dsh-plugin公开设计、实现、测试和使用文档,并首先提供一个能够直接连接本地 OpenTelemetry Collector 或 Jaeger 的最小可运行版本。Background
DeepSeek Harness (DSH) follows an “everything is a plugin” architecture and exposes complete session, turn, step, LLM, and tool lifecycle data. The repository already includes
dsh-session-telemetry-otel, which exports structured logs through OTLP. What is still missing is a standardized GenAI trace tree that lets an observability backend directly show the relationships among model calls, reasoning steps, tool executions, token usage, and latency within an agent run.We propose an independent, open-source LoongSuite observability plugin for DeepSeek Harness and would like feedback from the maintainers and community on the design and integration approach.
What is LoongSuite?
LoongSuite is an open-source observability data collection suite built on OpenTelemetry, with enhanced semantic representation for generative AI and agent workloads. This project aims to bring LoongSuite's OpenTelemetry GenAI observability capabilities to DeepSeek Harness while keeping the collection protocol, deployment model, and backend choice open.
The plugin source code and documentation will live in the standalone repository
loongsuite/dsh-plugin.Proposed scope
The goal is a native DSH plugin, without modifying Harness core, parsing terminal output, or requiring an additional local collection process:
ENTRY → AGENT → STEP → LLM / TOOL.Target trace structure:
The plugin will emit standard OTLP data to any compatible open-source or commercial backend, including OpenTelemetry Collector, Jaeger, Grafana Tempo, SigNoz, and Langfuse. GenAI-specific visualization capabilities may differ between backends, but the underlying data and transport remain open and standardized.
How to use it (planned interface)
The project is currently in the design and implementation preparation stage. After the first release, users will be able to install it independently from the DSH plugin market or the command line:
Users will then configure an OTLP endpoint in their DSH profile:
After DSH starts or restarts, the plugin will automatically collect and export agent telemetry. Sessions, model calls, and tool execution traces can then be inspected in compatible backends such as Jaeger, Grafana Tempo, SigNoz, or Langfuse. An OpenTelemetry Collector may be used as an optional processing and forwarding layer, but it is not required to use the plugin.
We also plan to support standard OpenTelemetry environment variables such as
OTEL_EXPORTER_OTLP_ENDPOINT,OTEL_EXPORTER_OTLP_HEADERS, andOTEL_SERVICE_NAMEfor containerized and automated deployments.Relationship to existing capabilities
This is not a duplicate of the existing
dsh-session-telemetry-otelpackage:dsh-plugin-langfusehas demonstrated the feasibility of building traces from DSH session data. The LoongSuite proposal differs by using standard OTLP, remaining backend-neutral, and being distributed as an independently installable DSH plugin.The implementation is intended to observe DSH public events and plugin lifecycles without claiming or replacing the official
sessionTelemetrybackend, so it should be able to run alongside the existing OTLP Logs backend.Privacy and reliability principles
If the direction is accepted, we will publish the design, implementation, tests, and usage documentation in
loongsuite/dsh-plugin, starting with a minimal runnable version that can connect directly to a local OpenTelemetry Collector or Jaeger instance.All reactions