{"name":"@opentelemetry/resource-detector-aws","version":"0.24.1-alpha.31","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.3","@types/node":"14.17.5","@types/sinon":"10.0.2","codecov":"3.8.3","mocha":"7.2.0","nock":"12.0.3","nyc":"15.1.0","rimraf":"3.0.2","sinon":"11.1.2","ts-mocha":"8.0.0","typescript":"4.3.5"},"peerDependencies":{"@opentelemetry/api":"^1.0.1"},"dependencies":{"@opentelemetry/core":"^0.24.1-alpha.31+fd2410cc","@opentelemetry/resources":"^0.24.1-alpha.31+fd2410cc","@opentelemetry/semantic-conventions":"^0.24.1-alpha.31+fd2410cc"},"gitHead":"fd2410cc9e8d43210b6ea44b8193fa70ee900499","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 { awsEc2Detector } 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.24.1-alpha.31","_nodeVersion":"14.17.3","_npmVersion":"lerna/3.22.1/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-uLMpQbdV6Ctbp11J1N4o1d0+3C7JNUjVQFYwu5KiizxI2tljDWf5l7ye+vH2nPXRN6SzR32vwzEzrIE2wkuMSg==","shasum":"64affd3bfeff156b56124745fadedccf44e624ad","tarball":"http://registry-npm.ywwl.com/@opentelemetry/resource-detector-aws/download/@opentelemetry/resource-detector-aws-0.24.1-alpha.31.tgz","fileCount":27,"unpackedSize":63831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAWSRCRA9TVsSAnZWagAAibgP+QFu+1ejf0QivdCX+gFI\n0TgDoLAtIY0usbSKyiC5+rfoyG9LC/SvFYBXoHw+Ue6FeMx8+kUWIDKWSHq8\nSKoozAZA4wkgCM7S30GvOl8xjMrcg0g3cffHxdpWQCL0/yoo8IcVzJUt36m1\niWJaoVKFXBcLqYZ2/DIpfvzs7tIOKrDiGgylBj4/nyk8t9qOcdDsVY/x4/wh\nuHYdOtgcLAdwF+lQx2h71O2ULWUpCqz6FGmKii0FS+HY5DH+0w9qnm9sE/7g\nL9y2HQA3xGQoWcox5Jj84WVZW++wjhKgumZvXzKb0b4kZQW++buryYiTwTgV\no5ZoDa/sQRA8d8RDe1zeDSLDiMMNw9dPv1EhEe6eSwgXzUh2UbVGS3L6ASKH\niWMfqIEKvHtzrY4jNN5Y9XU22nf4VO16FSezkdGJMYrfAla+nZoMWIWgwgeK\nAkHUrWVdxfNx3O42txw/MIgvcKP+BtKueudnY3p9uG87t7Yd7NoIEWeDXuRz\nvw05Mupcm9x0zDLYboU+Ep3RhdTGp3ZImykPSrQ0Mao67e1Oow1CB8GShU97\n6BmfUXSfcldqR7b8XRUsttpAjKNskO2/5hU8T9ERwdMu8j4PAcFb1p9gDgKm\nGtCZifiyD5fUdhQofxdaynm0gWO+tiGQcAOh59eP6m+roF+PU9b/PIJopgnQ\nN5Nq\r\n=FtRf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoXrZeC8NZo5re5QP88XLOb+BEWZBDRzd4ifdqBIW4XAiBy6TJFT7nQj9b0XInyE0mQXTA5d+ZfDVCuEvFf+q6u/g=="}],"size":15105,"noattachment":false,"key":"/@opentelemetry/resource-detector-aws/-/@opentelemetry/resource-detector-aws-0.24.1-alpha.31.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.24.1-alpha.31_1627481233741_0.4824799165798721"},"_hasShrinkwrap":false,"publish_time":1627481233888,"_cnpm_publish_time":1627481233888,"dist-tags":{"canary":"0.24.1-alpha.7","latest":"3.0.0","next":"0.24.0"}}