{"_id":"@agentinsights/otel","name":"@agentinsights/otel","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentinsights/otel","version":"0.1.0","author":{"name":"AgentInsight"},"license":"MIT","keywords":["agentinsight","observability","opentelemetry","otel","export","ai","llm"],"homepage":"https://agent.goldebridge.com","bugs":{"url":"https://github.com/AgentInsightSDK/agentinsight-js/issues"},"repository":{"type":"git","url":"git+https://github.com/agentinsight/agentinsight-js.git","directory":"packages/otel"},"engines":{"node":">=20"},"description":"AgentInsight OpenTelemetry export helpers","type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"dependencies":{"@agentinsights/core":"^0.1.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^2.0.1","@opentelemetry/exporter-trace-otlp-http":">=0.202.0 <1.0.0","@opentelemetry/sdk-trace-base":"^2.0.1"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","format":"prettier --write \"src/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\"","clean":"rm -rf dist"},"_id":"@agentinsights/otel@0.1.0","_integrity":"sha512-ygKndweEZD89trmo9BWMJC8QSJQ+fy4CqKaYK6bhmg4Av315dGxCXHOVCJbu6up6gO2TX/hh2jH0L5qaJKyjcQ==","_resolved":"C:\\Users\\Yingn\\AppData\\Local\\Temp\\52aecc48a185a93eb48be8dfec1dfc31\\agentinsights-otel-0.1.0.tgz","_from":"file:agentinsights-otel-0.1.0.tgz","_nodeVersion":"26.1.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-ygKndweEZD89trmo9BWMJC8QSJQ+fy4CqKaYK6bhmg4Av315dGxCXHOVCJbu6up6gO2TX/hh2jH0L5qaJKyjcQ==","shasum":"fbb9fd595e69135769857cddc0f255098c5a702f","tarball":"https://registry.npmjs.org/@agentinsights/otel/-/otel-0.1.0.tgz","fileCount":9,"unpackedSize":147828,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHsVu9BS321bbDS7fP2RYs21yrAEuLuw1XDnjTb+77qQIgC13d2Xx7qxDXRhqkuVX7VIz86H7XvV897lo4a5weDU4="}]},"_npmUser":{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"},"directories":{},"maintainers":[{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/otel_0.1.0_1780406576706_0.12006993653060083"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-02T13:22:56.530Z","0.1.0":"2026-06-02T13:22:56.836Z","modified":"2026-06-02T13:22:57.062Z"},"maintainers":[{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"}],"description":"AgentInsight OpenTelemetry export helpers","homepage":"https://agent.goldebridge.com","keywords":["agentinsight","observability","opentelemetry","otel","export","ai","llm"],"repository":{"type":"git","url":"git+https://github.com/agentinsight/agentinsight-js.git","directory":"packages/otel"},"author":{"name":"AgentInsight"},"bugs":{"url":"https://github.com/AgentInsightSDK/agentinsight-js/issues"},"license":"MIT","readme":"# @agentinsight/otel\r\n\r\n[![NPM](https://img.shields.io/npm/v/@agentinsight/otel.svg)](https://www.npmjs.com/package/@agentinsight/otel)\r\n\r\nAgentInsight OpenTelemetry 导出助手 / AgentInsight OpenTelemetry Export Helpers\r\n\r\n提供 `AgentInsightSpanProcessor`，支持将追踪数据导出到 AgentInsight 平台，包含数据掩码、过滤和媒体处理功能。\r\n\r\nProvides `AgentInsightSpanProcessor` to export traces to the AgentInsight platform, with masking, filtering, and media handling.\r\n\r\n> ⚠️ 仅支持 Node.js 20+ / Node.js 20+ only\r\n\r\n## 安装 / Installation\r\n\r\n```bash\r\nnpm install @agentinsight/otel\r\n```\r\n\r\n## 快速开始 / Quick Start\r\n\r\n```typescript\r\nimport { AgentInsightSpanProcessor } from \"@agentinsight/otel\";\r\nimport { NodeSDK } from \"@opentelemetry/sdk-node\";\r\n\r\nconst sdk = new NodeSDK({\r\n  spanProcessors: [\r\n    new AgentInsightSpanProcessor({\r\n      publicKey: \"pk-ai-...\",\r\n      secretKey: \"sk-ai-...\",\r\n      baseUrl: \"https://agent.goldebridge.com\",\r\n    }),\r\n  ],\r\n});\r\n\r\nsdk.start();\r\n```\r\n\r\n## 文档 / Documentation\r\n\r\n- [AgentInsight 平台 / Platform](https://agent.goldebridge.com/platform)\r\n- [API 参考 / API Reference](https://agent.goldebridge.com/docs)\r\n\r\n## 许可证 / License\r\n\r\n[MIT](../../LICENSE)\r\n","readmeFilename":"README.md","_rev":"1-f85814b2f4861df5d40f992c2b467f52"}