{"name":"@opentelemetry/resource-detector-aws","version":"0.22.1-alpha.13","description":"OpenTelemetry SDK resource detector for AWS","main":"build/src/index.js","types":"build/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"compile":"tsc --build","clean":"tsc --build --clean","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix","test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","tdd":"npm run test -- --watch-extensions ts --watch","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","version":"node ../../scripts/version-update.js"},"keywords":["opentelemetry","nodejs","resources","stats","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@opentelemetry/api":"^1.0.1","@types/mocha":"8.2.2","@types/node":"14.17.4","@types/sinon":"9.0.11","codecov":"3.8.2","mocha":"7.2.0","nock":"12.0.3","nyc":"15.1.0","rimraf":"3.0.2","sinon":"10.0.0","ts-mocha":"8.0.0","ts-node":"9.1.1","typescript":"4.3.4"},"peerDependencies":{"@opentelemetry/api":"^1.0.1"},"dependencies":{"@opentelemetry/core":"^0.22.1-alpha.13+01418978","@opentelemetry/resources":"^0.22.1-alpha.13+01418978","@opentelemetry/semantic-conventions":"^0.22.1-alpha.13+01418978"},"gitHead":"01418978e5cc15b5ec4d5283ec48910799fe2f06","readme":"# OpenTelemetry Resource Detector for AWS\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.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/resource-detector-aws\n```\n\n## Usage\n\n```typescript\nimport { detectResources } from '@opentelemetry/resources';\nimport { awsBeanstalkDetector } from '@opentelemetry/resource-detector-aws'\nconst resource = await detectResources({\n   detectors: [awsEc2Detector],\n})\n\nconst tracerProvider = new NodeTracerProvider({ resource });\n```\n\n## Available detectors\n\n- `awsBeanstalkDetector`: Populates `service` for processes running on [AWS Elastic Beanstalk](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/Welcome.html)\n- `awsEc2Detector`: Populates `cloud` and `host` for processes running on [Amazon EC2](https://aws.amazon.com/ec2/), including abstractions such as ECS on EC2. Notably, it does not populate anything on AWS Fargate\n- `awsEcsDetector`: Populates `container` for containers running on [Amazon ECS](https://aws.amazon.com/ecs/)\n- `awsEksDetector`: Populates `container` and `k8s.cluster_name` for containers running on [Amazon EKS](https://aws.amazon.com/eks/)\n  - `k8s.cluster_name` is not always available depending on the configuration of CloudWatch monitoring for the EKS cluster\n- `awsLambdaDetector`: Populates `faas` and `cloud` for functions running on [AWS Lambda](https://aws.amazon.com/lambda/)\n  - `faas.id` is currently not populated as it is not provided by the runtime at startup\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","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@opentelemetry/resource-detector-aws@0.22.1-alpha.13","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-Lq/9ogZrbMXO/TamtzvOfBW90OH3QS3hA4tjH8ULjr13YrPfjTulwFvFuHYCQ9ytXclvmnvvqXvOA9MxZXsEWg==","shasum":"165002127fbd35ead0028868ef0c5c363aeb5206","tarball":"http://registry-npm.ywwl.com/@opentelemetry/resource-detector-aws/download/@opentelemetry/resource-detector-aws-0.22.1-alpha.13.tgz","fileCount":27,"unpackedSize":63651,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3LqsCRA9TVsSAnZWagAAz4sP/0TexR8MLXqMl1ZgNdD0\nckhdoU6ZKHEsHj/x6/P1cWGJmY7MWXmTUa6Mb6YpDliOMp+7PZrXb0Skx6Aw\nDBZ/cS4eFFRop68Z4mnxw3Hx5jZnnTQuMpg32i69dRJoMTZn9i0dA7cA0OPs\ngXvjOvMEj5hmQuoyX6DU6PoRMx/FmuSmcQs9FF1A7H+C8zUPca9vn+Ml2lnw\nKUjJtUbvSOQ2mkgDTyaZAptA/I+ESuyt/eTiYzZ1IIXhe56/BIXlrORGi/ED\nP7HKBXbx7XGdJpPZAOzlGWX4pf4tFgZ04mRrBoyL17UrEvYK76pwuQg4kES7\nUksNv1B4o16JU+dTVyMI3BWm7ngz4ZgYyrd5nPW7cRjXI/7af6+eMXePMBzS\nANykCi7uifgAI4iEbxxvZiMVojSlhOCBPbehivZckKj5Fg8xiMgS/2WvCCzI\nnE+MZjMs0LUiv8FoeCDdhAkOUDtiZSAzaQLmPY0aKgqhyiH6ijtfNQvkISFk\nke74dt3Fi6Tg5Goma2jlYSaT+13xfdCwomK4jLJv2gKwefhU1Nv1I9NEVy3S\nNJ6lhubV2OETKqHwiOZZRSg0G0Nkd2Q+V0ZqigweBMgbYgfg08F5vtjl0COp\n/zHxbYPMoXa1OZK/eCbR0kZSt9+IxPsfBDnlMcEjXxZ61NHFhkZTZafHdei9\naKFf\r\n=DMdu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLKWPqai3sqBdovY9e0kdUY1tiPfMU9cWaxy13f87bUAiEAjr7uyq1czyKKCanuLB1vXi49Fqrm1oTCPMjHhOp5gzk="}],"size":15104,"noattachment":false,"key":"/@opentelemetry/resource-detector-aws/-/@opentelemetry/resource-detector-aws-0.22.1-alpha.13.tgz"},"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resource-detector-aws_0.22.1-alpha.13_1625078444070_0.8725248653384439"},"_hasShrinkwrap":false,"publish_time":1625078444249,"_cnpm_publish_time":1625078444249,"dist-tags":{"canary":"0.24.1-alpha.7","latest":"3.0.0","next":"0.24.0"}}