Skip to content
v2.274.0

Tracing Enum ​

X-Ray Tracing Modes (https://docs.aws.amazon.com/lambda/latest/dg/API_TracingConfig.html).

Example ​

ts
const fn = new lambda.Function(this, 'MyFunction', {
  runtime: lambda.Runtime.NODEJS_LATEST,
  handler: 'index.handler',
  code: lambda.Code.fromInline('exports.handler = function(event, ctx, cb) { return cb(null, "hi"); }'),
  tracing: lambda.Tracing.ACTIVE,
});

Members ​

MemberDescription
ACTIVELambda will respect any tracing header it receives from an upstream service.
PASS_THROUGHLambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1".
DISABLEDLambda will not trace any request.

Referenced by ​