@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:56.489Z") public enum Tracing extends java.lang.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(java.lang.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.
|
public static final Tracing ACTIVE
If no tracing header is received, Lambda will call X-Ray for a tracing decision.
public static final Tracing PASS_THROUGH
public static final Tracing DISABLED
public static Tracing[] values()
for (Tracing c : Tracing.values()) System.out.println(c);
public static Tracing valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null