@agentinsight-sdk/otel
v0.1.3
Published
AgentInsight OpenTelemetry export helpers
Maintainers
Readme
@agentinsight-sdk/otel
AgentInsight OpenTelemetry 导出助手 / AgentInsight OpenTelemetry Export Helpers
提供 AgentInsightSpanProcessor,支持将追踪数据导出到 AgentInsight 平台,包含数据掩码、过滤和媒体处理功能。
Provides AgentInsightSpanProcessor to export traces to the AgentInsight platform, with masking, filtering, and media handling.
⚠️ 仅支持 Node.js 20+ / Node.js 20+ only
安装 / Installation
npm install @agentinsight-sdk/otel快速开始 / Quick Start
import { AgentInsightSpanProcessor } from "@agentinsight-sdk/otel";
import { NodeSDK } from "@opentelemetry/sdk-node";
const sdk = new NodeSDK({
spanProcessors: [
new AgentInsightSpanProcessor({
publicKey: "pk-ai-...",
secretKey: "sk-ai-...",
baseUrl: "https://agent.goldebridge.com",
}),
],
});
sdk.start();