{"_id":"@opentelemetry/resources@2.12.0","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"dist":{"shasum":"3a0fceb16c44d4d024f25f3f76eb773a7df67847","tarball":"http://registry-npm.ywwl.com/@opentelemetry/resources/download/@opentelemetry/resources-2.12.0.tgz","fileCount":291,"integrity":"sha512-+rSRoOdln6NhXTVcBdHSlZxJDNzwxadeweK2ltZO3tVtfp6aklABc06xclDk6ovRR+EiGgIcSbh/6NgjFhnb3A==","signatures":[{"sig":"MEYCIQC45Eokxjb0GLhqDdoZ6XO2V1TE3QXW18bWSBUHAJsbswIhAN94othuVSv55KoUEbRFS6Y/oE2Igarl/lOr/s58JgKF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC166m9nzUju7qRp0FrUouQQqkCqnzX9fa6jhDgW5zr9wIgdw3qmD1KoxULh6O/SODfh9yRpoaUwHPWR7w6V1s5zzw="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fresources@2.12.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":440928,"size":50482,"noattachment":false,"key":"/@opentelemetry/resources/-/@opentelemetry/resources-2.12.0.tgz"},"main":"build/src/index.js","name":"@opentelemetry/resources","types":"build/src/index.d.ts","author":{"name":"OpenTelemetry Authors"},"esnext":"build/esnext/index.js","module":"build/esm/index.js","browser":{"./src/detectors/platform/index.ts":"./src/detectors/platform/browser/index.ts","./build/esm/detectors/platform/index.js":"./build/esm/detectors/platform/browser/index.js","./build/src/detectors/platform/index.js":"./build/src/detectors/platform/browser/index.js","./build/esnext/detectors/platform/index.js":"./build/esnext/detectors/platform/browser/index.js"},"engines":{"node":"^18.19.0 || >=20.6.0"},"gitHead":"92b844e8aa7d9655e4b3560154e912c4c1ced64d","license":"Apache-2.0","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"eslint .","test":"nyc mocha 'test/**/*.test.ts'","clean":"tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json","compile":"tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json","version":"node ../../scripts/version-update.js","lint:fix":"eslint . --fix","prewatch":"npm run precompile","test:browser":"karma start --single-run","align-api-deps":"node ../../scripts/align-api-deps.js","peer-api-check":"node ../../scripts/peer-api-check.js","prepublishOnly":"npm run compile","test:webworker":"karma start karma.worker.js --single-run"},"version":"2.12.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"6daa0598-6065-4459-836d-759d6d11206d"}},"homepage":"https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources","keywords":["opentelemetry","nodejs","resources","stats","profiling"],"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js.git","type":"git"},"_npmVersion":"lerna/10.0.1/node@v24.21.0+x64 (linux)","description":"OpenTelemetry SDK resources","directories":{},"maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"@opentelemetry/core":"2.12.0","@opentelemetry/semantic-conventions":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"17.1.0","nock":"13.5.6","karma":"6.4.4","mocha":"11.8.0","sinon":"18.0.1","webpack":"5.108.4","typescript":"5.2.2","@types/node":"18.19.130","karma-mocha":"2.0.1","webpack-cli":"7.2.2","@types/mocha":"10.0.10","@types/sinon":"17.0.4","karma-webpack":"5.0.1","karma-coverage":"2.2.1","@opentelemetry/api":">=1.3.0 <1.10.0","@types/webpack-env":"1.18.8","karma-spec-reporter":"0.0.36","karma-chrome-launcher":"3.2.0","karma-mocha-webworker":"1.3.0"},"peerDependencies":{"@opentelemetry/api":">=1.3.0 <1.10.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/resources_2.12.0_1791294053827_0.8239928843578597"},"readme":"# OpenTelemetry Resources Util\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-image]\n\nThe OpenTelemetry Resource is an immutable representation of the entity producing telemetry. For example, a process producing telemetry that is running in a container on Kubernetes has a Pod name, it is in a namespace and possibly is part of a Deployment which also has a name. All three of these attributes can be included in the `Resource`.\n\n[This document][resource-semantic_conventions] defines standard attributes for resources which are accessible via [`@opentelemetry/semantic-conventions`](https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions).\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/resources\n```\n\n## Usage\n\n```typescript\nimport { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';\nimport { resourceFromAttributes } from '@opentelemetry/resources';\n\nconst resource = resourceFromAttributes({\n    [ATTR_SERVICE_NAME]: 'api-service',\n});\n\nconst anotherResource = resourceFromAttributes({\n    'service.version': '2.0.0',\n    'service.group': 'instrumentation-group'\n});\nconst mergedResource = resource.merge(anotherResource);\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 in [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions\n[license-url]: https://github.com/open-telemetry/opentelemetry-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/@opentelemetry/resources\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fresources.svg\n\n[resource-semantic_conventions]: https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions\n","publish_time":1791294053990,"_cnpm_publish_time":1791294053990,"dist-tags":{"canary":"3.0.0-rc.0","latest":"3.1.1","latest-2":"2.12.1","next":"1.8.0"}}