Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws/aws-distro-opentelemetry-node-autoinstrumentation

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/aws-distro-opentelemetry-node-autoinstrumentation

This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-13.65%
Maintainers
1
Weekly downloads
 
Created
Source

AWS Distro for OpenTelemetry (ADOT) NodeJS Auto-Instrumentation

Install this package into your NodeJS project with:

npm install --save @aws/aws-distro-opentelemetry-node-autoinstrumentation

Run your application with ADOT NodeJS with:

node --require '@aws/aws-distro-opentelemetry-node-autoinstrumentation/register' your-application.js

Sample Environment Variables for Application Signals

export OTEL_RESOURCE_ATTRIBUTES=service.name=example-application-service-name
export OTEL_AWS_APPLICATION_SIGNALS_ENABLED=true
export OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT=http://localhost:4316/v1/metrics
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4316/v1/traces
export OTEL_TRACES_EXPORTER=console,otlp
export OTEL_TRACES_SAMPLER=xray
export OTEL_TRACES_SAMPLER_ARG=endpoint=http://localhost:2000,polling_interval=300

General Recommendations

Environment VariableDescriptionExample
OTEL_EXPORTER_OTLP_PROTOCOLLeave unset so that ADOT JS will use a recommended OTLP protocolhttp/protobuf
OTEL_PROPAGATORSLeave unset so that ADOT JS will use a recommended list of propagatorsxray,tracecontext,b3,b3multi
OTEL_NODE_DISABLED_INSTRUMENTATIONSLeave unset so that ADOT JS will disable a recommended list of instrumentationsfs,dns
OTEL_NODE_RESOURCE_DETECTORSLeave unset so that ADOT JS will use a recommended list of Resource Detectors. If set, env should be at the end of the listaws,env

FAQs

Package last updated on 02 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc