{"_id":"@agentinsights/tracing","name":"@agentinsights/tracing","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentinsights/tracing","version":"0.1.0","author":{"name":"AgentInsight"},"license":"MIT","keywords":["agentinsight","observability","opentelemetry","tracing","instrumentation","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/tracing"},"engines":{"node":">=20"},"description":"AgentInsight instrumentation methods based on OpenTelemetry","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"},"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/tracing@0.1.0","_integrity":"sha512-2GQMInvVYJAdYI/J1evHpNJd8JbQ+qAIuaonunUxdbPHTFS6HR4EsbCJyzABR7LwIbxzcuL69rufbOHaGhfbVQ==","_resolved":"C:\\Users\\Yingn\\AppData\\Local\\Temp\\980b50aaf0e52bf8c18efcdec110e358\\agentinsights-tracing-0.1.0.tgz","_from":"file:agentinsights-tracing-0.1.0.tgz","_nodeVersion":"26.1.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-2GQMInvVYJAdYI/J1evHpNJd8JbQ+qAIuaonunUxdbPHTFS6HR4EsbCJyzABR7LwIbxzcuL69rufbOHaGhfbVQ==","shasum":"9817f1758e8f605c7c66c65d4f8c775676a0c167","tarball":"https://registry.npmjs.org/@agentinsights/tracing/-/tracing-0.1.0.tgz","fileCount":9,"unpackedSize":504588,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAkSTC0Oa6wh6EOHMFsNh1qcLxOOcI7NvrA8se0XN+W8AiA+z4t/lrAt1hh4fD6ZQN3iw6tjmomGM3lDZT9jwEG7Ig=="}]},"_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/tracing_0.1.0_1780406565550_0.06257432155933484"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-02T13:22:45.429Z","0.1.0":"2026-06-02T13:22:45.737Z","modified":"2026-06-02T13:22:45.969Z"},"maintainers":[{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"}],"description":"AgentInsight instrumentation methods based on OpenTelemetry","homepage":"https://agent.goldebridge.com","keywords":["agentinsight","observability","opentelemetry","tracing","instrumentation","ai","llm"],"repository":{"type":"git","url":"git+https://github.com/agentinsight/agentinsight-js.git","directory":"packages/tracing"},"author":{"name":"AgentInsight"},"bugs":{"url":"https://github.com/AgentInsightSDK/agentinsight-js/issues"},"license":"MIT","readme":"# @agentinsight/tracing\r\n\r\n[![NPM](https://img.shields.io/npm/v/@agentinsight/tracing.svg)](https://www.npmjs.com/package/@agentinsight/tracing)\r\n\r\nAgentInsight 追踪原语 / AgentInsight Tracing Primitives\r\n\r\n基于 OpenTelemetry 的追踪方法，包括 `startActiveSpan`、`startActiveGeneration` 和 `observe` 包装器。\r\n\r\nOpenTelemetry-based instrumentation methods including `startActiveSpan`, `startActiveGeneration`, and the `observe` wrapper.\r\n\r\n## 安装 / Installation\r\n\r\n```bash\r\nnpm install @agentinsight/tracing\r\n```\r\n\r\n## 快速开始 / Quick Start\r\n\r\n```typescript\r\nimport { observe } from \"@agentinsight/tracing\";\r\n\r\nconst result = await observe({ name: \"my-operation\" }, async () => {\r\n  return \"Hello, AgentInsight!\";\r\n});\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-e8a1cc36beb5681d6ec9da24e1b2facf"}