adieuadieu / retinal

🏙 Retinal is a Serverless AWS Lambda service for resizing images on-demand or event-triggered

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable X-Ray tracing

adieuadieu opened this issue · comments

~/serverless.yml:

    # Enable X-Ray tracing on Lambda functions
    SharpLambdaFunction:
      Properties:
        TracingConfig:
          Mode: Active
  • attach AWSXrayWriteOnlyAccess IAM policy.
  • instrument AWS SDK calls (more)
var AWSXRay = require('aws-xray-sdk-core');
var AWS = AWSXRay.captureAWS(require('aws-sdk'));