{"name":"@opentelemetry/resources","version":"0.23.1-alpha.18","keywords":["opentelemetry","nodejs","resources","stats","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/resources@0.23.1-alpha.18","maintainers":[{"name":"mayurkale22","email":"mayurkale22@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"obecny","email":"bobecny@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"dist":{"shasum":"05203a515636f3646f7cf3c6f091616faa12d241","tarball":"http://registry-npm.ywwl.com/@opentelemetry/resources/download/@opentelemetry/resources-0.23.1-alpha.18.tgz","fileCount":93,"integrity":"sha512-msTtQHMAdjtbX2IDhQ53PUBd2KkrNutU1nYXDyxdslsTK5coZEBFhNjld8StzEZRi6WNptzNJhRDjj430CeIxQ==","signatures":[{"sig":"MEQCIGfpH65SOFCowXNNl6w1jYa/k68QiiZiKMQRyXX5ptfzAiB20qj5s5CHabm2otU9BkaOt9HZHKet+3G9ahu2enk6OA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3yTRCRA9TVsSAnZWagAAxZAP/32rNgODjFPZMWerz2sG\nv8nG+y50xLztH4OjiC1sI71W6tKryxR2tYX8LYazNJKrjlsw1WOGG8O+GG0h\nLJbvSXb78hRqmysOpKHLmMPrlNarLchY5UAbthYh7MRbH1PCcr8VuTLoQKVI\n4CumSSS8Z58JOOi0jGqEMWAigzGPNit27Uyyt/6NlM++uThzj8i2l6el/g5T\n60QFxhumrCx0MYMRDzltagjQCGApVAesNdqaXYPwrIiqe5mNt9IJOn5tUkXs\ngdTKags3rfzWXiMP+nEwoDmaVXC0ZGrUGwbHbfoDYWPBSlkoDg3h4gnDZ98o\nDLIcdJHFToyCYdTkReZdJxvh8bdVVKfIxuw0325vVjwhzYX4EO6rp5GJmMIk\nynQIoQRErnKjmNdjI0Hm0rpCs9bQ8ptp5qUumO33/GuXuUAPyZfE3DUicJzA\nTDi+d8chB722DzrkYk2wB7gdLr/rloiD3twT7sQpFVtdL3vfxxR4gEEj/BfV\noPZbXXxxjWF3sEl4QEf0WlOmVz+7rsqQ/Ka9qgj8aUgbOab6sYtJFKL5k2gN\nM85mTat/HzvvXEXgXvQ1wzNhx6CZ6uYz8P1h0Z48EfrSaz4kxTu2ZiGC0HZq\nVzT8TJJ3oIKsG0x1/+c0e+uuNFnpHkXcyFrFNT718RoGtE77hiVLMXKpPWlJ\ngbmC\r\n=HJfS\r\n-----END PGP SIGNATURE-----\r\n","size":20042,"noattachment":false,"key":"/@opentelemetry/resources/-/@opentelemetry/resources-0.23.1-alpha.18.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","module":"build/esm/index.js","readme":"# OpenTelemetry Resources Util\n\n[![NPM Published Version][npm-img]][npm-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-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/packages/opentelemetry-semantic-conventions).\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/resources\n```\n\n## Usage\n\n```typescript\nimport { ResourceAttributes } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '@opentelemetry/resources';\n\nconst resource = new Resource({\n    [ResourceAttributes.SERVICE_NAME]: 'api-service',\n});\n\nconst another_resource = new Resource({\n    'service.version': 2.0.0,\n    'service.group': 'instrumentation-group'\n});\nconst merged_resource = resource.merge(another_resource);\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[dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-resources\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-resources\n[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-resources&type=dev\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-resources&type=dev\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","browser":{"./src/platform/index.ts":"./src/platform/browser/index.ts","./build/esm/platform/index.js":"./build/esm/platform/browser/index.js","./build/src/platform/index.js":"./build/src/platform/browser/index.js"},"engines":{"node":">=8.0.0"},"gitHead":"4b3425dd09f0a7087c9d741d25c7a9a0be42770c","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"eslint . --ext .ts","test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","clean":"tsc --build --clean tsconfig.json tsconfig.esm.json","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","compile":"tsc --build tsconfig.json tsconfig.esm.json","version":"node ../../scripts/version-update.js","lint:fix":"eslint . --ext .ts --fix"},"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","description":"OpenTelemetry SDK resources","directories":{},"_nodeVersion":"14.17.1","dependencies":{"@opentelemetry/core":"^0.23.1-alpha.18+4b3425dd","@opentelemetry/semantic-conventions":"^0.23.1-alpha.18+4b3425dd"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"15.1.0","nock":"12.0.3","mocha":"7.2.0","sinon":"10.0.0","rimraf":"3.0.2","codecov":"3.8.2","ts-node":"10.0.0","ts-mocha":"8.0.0","typescript":"4.3.5","@types/node":"14.17.4","@types/mocha":"8.2.2","@types/sinon":"10.0.2","@opentelemetry/api":"^1.0.1"},"peerDependencies":{"@opentelemetry/api":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/resources_0.23.1-alpha.18_1625236689423_0.2101309582105586","host":"s3://npm-registry-packages"},"publish_time":1625236689569,"_cnpm_publish_time":1625236689569,"dist-tags":{"canary":"3.0.0-rc.0","latest":"3.1.1","latest-2":"2.12.1","next":"1.8.0"}}