Socket
Socket
Sign inDemoInstall

@opentelemetry/resource-detector-aws

Package Overview
Dependencies
4
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @opentelemetry/resource-detector-aws

OpenTelemetry SDK resource detector for AWS


Version published
Weekly downloads
407K
decreased by-20.65%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

OpenTelemetry Resource Detector for AWS

NPM Published Version Apache License

component owners: @carolabadeer

Resource detector for Amazon Web Services.

Status

MaturityComponent OwnerCompatibility
Stable@carolabadeerAPI 1.0+
SDK 1.0+

Installation

npm install --save @opentelemetry/resource-detector-aws

Usage

import { detectResources } from '@opentelemetry/resources';
import { awsEc2Detector } from '@opentelemetry/resource-detector-aws'
const resource = await detectResources({
   detectors: [awsEc2Detector],
})

const tracerProvider = new NodeTracerProvider({ resource });

Available detectors

  • awsBeanstalkDetector: Populates service for processes running on AWS Elastic Beanstalk
  • awsEc2Detector: Populates cloud and host for processes running on Amazon EC2, including abstractions such as ECS on EC2. Notably, it does not populate anything on AWS Fargate
  • awsEcsDetector: Populates container for containers running on Amazon ECS
  • awsEksDetector: Populates container and k8s.cluster_name for containers running on Amazon EKS
    • k8s.cluster_name is not always available depending on the configuration of CloudWatch monitoring for the EKS cluster
  • awsLambdaDetector: Populates faas and cloud for functions running on AWS Lambda
    • faas.id is currently not populated as it is not provided by the runtime at startup

License

Apache 2.0 - See LICENSE for more information.

Keywords

FAQs

Last updated on 03 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc