@agentinsight-sdk/tracing
v0.1.3
Published
AgentInsight instrumentation methods based on OpenTelemetry
Maintainers
Readme
@agentinsight-sdk/tracing
AgentInsight 追踪原语 / AgentInsight Tracing Primitives
基于 OpenTelemetry 的追踪方法,包括 startActiveSpan、startActiveGeneration 和 observe 包装器。
OpenTelemetry-based instrumentation methods including startActiveSpan, startActiveGeneration, and the observe wrapper.
安装 / Installation
npm install @agentinsight-sdk/tracing快速开始 / Quick Start
import { observe } from "@agentinsight-sdk/tracing";
const myOperation = observe(async () => "Hello, AgentInsight!", {
name: "my-operation",
});
const result = await myOperation();