@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.489Z") @Stability(value=Stable) public enum Tracing extends Enum<Tracing>
Example:
Function fn = Function.Builder.create(this, "MyFunction")
.runtime(Runtime.NODEJS_16_X)
.handler("index.handler")
.code(Code.fromInline("exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }"))
.tracing(Tracing.ACTIVE)
.build();
| Enum Constant and Description |
|---|
ACTIVE
Lambda will respect any tracing header it receives from an upstream service.
|
DISABLED
Lambda will not trace any request.
|
PASS_THROUGH
Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1".
|
| Modifier and Type | Method and Description |
|---|---|
static Tracing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tracing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final Tracing ACTIVE
If no tracing header is received, Lambda will call X-Ray for a tracing decision.
@Stability(value=Stable) public static final Tracing PASS_THROUGH
@Stability(value=Stable) public static final Tracing DISABLED
public static Tracing[] values()
for (Tracing c : Tracing.values()) System.out.println(c);
public static Tracing valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.