Pawel
Pawel

Reputation: 3802

How to configure X-Ray for lambda service

I have number of Lambda functions written in JavaScript for node 8.10 deployed by Serverless framework.

When I go to X-Ray on web console I can't find any data, all tables are empty there. My functions use also SNS, Rekognition, S3.

I was under impression that Node.js functions are automatically handled by X-Ray.

Do I need to add something to my lambda functions to make them "discoverable" via X-Ray?

Upvotes: 1

Views: 721

Answers (1)

AWSSandra
AWSSandra

Reputation: 384

You have to opt in with enabling "active tracing" for you Lambda function.

https://docs.aws.amazon.com/xray/latest/devguide/xray-services-lambda.html

Upvotes: 1

Related Questions