@serverless/aws-lambda-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.15.15 • Public • Published

@serverless/aws-lambda-sdk

AWS Lambda Serverless Console SDK

Instruments AWS Lambda functions, propagates traces to the Serverless Console and exposes Serverless SDK to function logic

Setup

1. Register with Serverless Console

2. In Serverless Console turn on integration for your AWS account and chosen Lambdas

3. (optionally) Fine tune default instrumentation behavior with following options

SLS_DISABLE_HTTP_MONITORING (or options.disableHttpMonitoring)

Disable tracing of HTTP and HTTPS requests

SLS_DISABLE_REQUEST_RESPONSE_MONITORING (or options.disableRequestResponseMonitoring)

(Dev mode only) Disable monitoring requests and reponses (function, AWS SDK requests and HTTP(S) requests)

SLS_DISABLE_AWS_SDK_MONITORING (or options.disableAwsSdkMonitoring)

Disable automated AWS SDK monitoring

SLS_DISABLE_EXPRESS_MONITORING (or options.disableExpressMonitoring)

Disable automated express monitoring

SLS_DISABLE_TRACE_SAMPLING (or options.disableTraceSampling)

Disable automatic trace sampling

Instrumentation

AWS Lambda SDK automatically creates aws.lambda, aws.lambda.initialization and aws.lambda.invocation trace spans. For more details see SDK Trace spans documentation

Additionally automatic instrumentation (with caveats) is provided for:

SDK API

Readme

Keywords

none

Package Sidebar

Install

npm i @serverless/aws-lambda-sdk

Weekly Downloads

338

Version

0.15.15

License

MIT

Unpacked Size

113 kB

Total Files

31

Last publish

Collaborators

  • eahefnawy
  • ac360
  • serverless-main