{"_id":"@traceloop/instrumentation-google-generativeai","_rev":"2-f06107fb9dddd0303282577a6e60c125","name":"@traceloop/instrumentation-google-generativeai","dist-tags":{"latest":"0.27.0"},"versions":{"0.26.0":{"name":"@traceloop/instrumentation-google-generativeai","version":"0.26.0","keywords":["opentelemetry","nodejs","tracing","attributes","semantic conventions","google","gemini","genai"],"author":{"name":"Traceloop"},"license":"Apache-2.0","_id":"@traceloop/instrumentation-google-generativeai@0.26.0","maintainers":[{"name":"tomer-friedman","email":"tomer@traceloop.com"},{"name":"nirga","email":"nir@vecinity.io"},{"name":"galklm","email":"gal@traceloop.dev"}],"homepage":"https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-google-generativeai","bugs":{"url":"https://github.com/traceloop/openllmetry-js/issues"},"dist":{"shasum":"8f1ab4dccea0a2d4efda97525cb8697b0964fd2b","tarball":"https://registry.npmjs.org/@traceloop/instrumentation-google-generativeai/-/instrumentation-google-generativeai-0.26.0.tgz","fileCount":11,"integrity":"sha512-26aiuE+e7hMol/vJDYVEynB86PFPZVdAdHHwxNZdEba6ASGo7EZvJYcvjHImP8dJVgOVP2en7YquJ0+TXUd0Yg==","signatures":[{"sig":"MEUCIQDSmf49qxEiuEKQhytSwxwW26qA5uzXIj1hvunQCiPAAAIgBk2VmfFoP6asSHDd4p8o0/ntT0eDY7GdzLisZp6zTAA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":127856},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14"},"gitHead":"d44ce24686b5f6362aee84ce75a733d05609d4e7","scripts":{"lint":"eslint .","test":"ts-mocha -p tsconfig.test.json 'tests/**/*.test.ts' --timeout 20000","build":"rollup -c","lint:fix":"eslint . --fix"},"_npmUser":{"name":"galklm","email":"gal@traceloop.dev"},"repository":{"url":"git+https://github.com/traceloop/openllmetry-js.git","type":"git"},"_npmVersion":"lerna/9.0.3/node@v20.20.2+x64 (linux)","description":"Google Gen AI SDK Instrumentation","directories":{},"_nodeVersion":"20.20.2","dependencies":{"tslib":"^2.8.1","@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^2.0.1","@opentelemetry/instrumentation":"^0.203.0","@traceloop/instrumentation-utils":"0.26.0","@traceloop/ai-semantic-conventions":"0.26.0","@opentelemetry/semantic-conventions":"^1.40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-mocha":"^11.1.0","@types/mocha":"^10.0.10","@google/genai":"^1.50.1","@opentelemetry/sdk-trace-base":"^2.0.1","@opentelemetry/sdk-trace-node":"^2.0.1","@opentelemetry/context-async-hooks":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-google-generativeai_0.26.0_1776339949175_0.8296088550304799","host":"s3://npm-registry-packages-npm-production"}},"0.27.0":{"name":"@traceloop/instrumentation-google-generativeai","version":"0.27.0","description":"Google Gen AI SDK Instrumentation","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/traceloop/openllmetry-js.git"},"scripts":{"build":"rollup -c","lint":"eslint .","lint:fix":"eslint . --fix","test":"ts-mocha -p tsconfig.test.json 'tests/**/*.test.ts' --timeout 20000"},"keywords":["opentelemetry","nodejs","tracing","attributes","semantic conventions","google","gemini","genai"],"author":{"name":"Traceloop"},"license":"Apache-2.0","engines":{"node":">=14"},"publishConfig":{"access":"public"},"dependencies":{"@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^2.0.1","@opentelemetry/instrumentation":"^0.203.0","@opentelemetry/semantic-conventions":"^1.40.0","@traceloop/ai-semantic-conventions":"0.27.0","@traceloop/instrumentation-utils":"0.27.0","tslib":"^2.8.1"},"devDependencies":{"@google/genai":"^1.50.1","@opentelemetry/context-async-hooks":"^2.0.1","@opentelemetry/sdk-trace-base":"^2.0.1","@opentelemetry/sdk-trace-node":"^2.0.1","@types/mocha":"^10.0.10","ts-mocha":"^11.1.0"},"homepage":"https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-google-generativeai","gitHead":"28c4a7a9e29ad295fe3dd108e853ef442b3fc507","_id":"@traceloop/instrumentation-google-generativeai@0.27.0","bugs":{"url":"https://github.com/traceloop/openllmetry-js/issues"},"_nodeVersion":"24.16.0","_npmVersion":"lerna/9.0.3/node@v24.16.0+x64 (linux)","dist":{"integrity":"sha512-KaUPMITuSv/mXNs37U/NpMXmkctSiq4iwQY+y025m+as1rUn4gGdjdTzYl666f5DuMLpi/0HWfyk4fh1hDmPdQ==","shasum":"85f2675dbb93a1c104f7ffeff25674a255a0caa0","tarball":"https://registry.npmjs.org/@traceloop/instrumentation-google-generativeai/-/instrumentation-google-generativeai-0.27.0.tgz","fileCount":11,"unpackedSize":127856,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@traceloop%2finstrumentation-google-generativeai@0.27.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDNP2wRWrt9BLJLhNFtCwig+4doixdbensu4F/ychy5fAiANetjvL7usmbSFJywPMB0OKiinWPyHrSEQcZ1bspl2ag=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5456f69f-9cfe-4083-a9f6-c58ca7a2a2d6"}},"directories":{},"maintainers":[{"name":"tomer-friedman","email":"tomer@traceloop.com"},{"name":"nirga","email":"nir@vecinity.io"},{"name":"galklm","email":"gal@traceloop.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/instrumentation-google-generativeai_0.27.0_1780327901888_0.6921270754012219"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-16T11:45:49.066Z","modified":"2026-06-01T15:31:42.331Z","0.26.0":"2026-04-16T11:45:49.312Z","0.27.0":"2026-06-01T15:31:42.037Z"},"bugs":{"url":"https://github.com/traceloop/openllmetry-js/issues"},"author":{"name":"Traceloop"},"license":"Apache-2.0","homepage":"https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-google-generativeai","keywords":["opentelemetry","nodejs","tracing","attributes","semantic conventions","google","gemini","genai"],"repository":{"type":"git","url":"git+https://github.com/traceloop/openllmetry-js.git"},"description":"Google Gen AI SDK Instrumentation","maintainers":[{"name":"tomer-friedman","email":"tomer@traceloop.com"},{"name":"nirga","email":"nir@vecinity.io"},{"name":"galklm","email":"gal@traceloop.dev"}],"readme":"# OpenTelemetry Google Gen AI SDK instrumentation for Node.js\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-url]\n\nThis module provides automatic instrumentation for [`Google Gen AI SDK`](https://github.com/googleapis/js-genai) (`@google/genai`) module, which may be loaded using the [`@opentelemetry/sdk-trace-node`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node) package and is included in the [`@traceloop/node-server-sdk`](https://www.npmjs.com/package/@traceloop/node-server-sdk) bundle.\n\nIf total installation size is not constrained, it is recommended to use the [`@traceloop/node-server-sdk`](https://www.npmjs.com/package/@traceloop/node-server-sdk) bundle for the most seamless instrumentation experience.\n\nCompatible with OpenTelemetry JS API and SDK `1.0+`.\n\n## Installation\n\n```bash\nnpm install --save @traceloop/instrumentation-google-generativeai\n```\n\n## Supported Versions\n\n- `>=1.0.0`\n\n## Usage\n\nTo load a specific plugin, specify it in the registerInstrumentations's configuration:\n\n```js\nconst { NodeTracerProvider } = require(\"@opentelemetry/sdk-trace-node\");\nconst {\n  GenAIInstrumentation,\n} = require(\"@traceloop/instrumentation-google-generativeai\");\nconst { registerInstrumentations } = require(\"@opentelemetry/instrumentation\");\n\nconst provider = new NodeTracerProvider();\nprovider.register();\n\nregisterInstrumentations({\n  instrumentations: [new GenAIInstrumentation()],\n});\n```\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us on [Slack][slack-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[slack-url]: https://traceloop.com/slack\n[license-url]: https://github.com/traceloop/openllmetry-js/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/@traceloop/instrumentation-google-generativeai\n[npm-img]: https://badge.fury.io/js/%40traceloop%2Finstrumentation-google-generativeai.svg\n","readmeFilename":"README.md"}