Enum Tracing
- All Implemented Interfaces:
Serializable
,Comparable<Tracing>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.849Z")
@Stability(Stable)
public enum Tracing
extends Enum<Tracing>
X-Ray Tracing Modes (https://docs.aws.amazon.com/lambda/latest/dg/API_TracingConfig.html).
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLambda will respect any tracing header it receives from an upstream service.Lambda will not trace any request.Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". -
Method Summary
-
Enum Constant Details
-
ACTIVE
Lambda will respect any tracing header it receives from an upstream service.If no tracing header is received, Lambda will call X-Ray for a tracing decision.
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-