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
| Member | Description |
|---|---|
ACTIVE | Lambda will respect any tracing header it receives from an upstream service. |
PASS_THROUGH | Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". |
DISABLED | Lambda will not trace any request. |
Referenced by
FunctionOptions.tracingtracingtracingTracingTracing