@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TracingConfig extends Object implements Serializable, Cloneable, StructuredPojo
The parent object that contains your function's tracing settings.
Constructor and Description |
---|
TracingConfig() |
Modifier and Type | Method and Description |
---|---|
TracingConfig |
clone() |
boolean |
equals(Object obj) |
String |
getMode()
Can be either PassThrough or Active.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMode(String mode)
Can be either PassThrough or Active.
|
void |
setMode(TracingMode mode)
Can be either PassThrough or Active.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TracingConfig |
withMode(String mode)
Can be either PassThrough or Active.
|
TracingConfig |
withMode(TracingMode mode)
Can be either PassThrough or Active.
|
public void setMode(String mode)
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If 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.
mode
- Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream
service if it contains a tracing header with "sampled=1". If 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.TracingMode
public String getMode()
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If 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.
TracingMode
public TracingConfig withMode(String mode)
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If 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.
mode
- Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream
service if it contains a tracing header with "sampled=1". If 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.TracingMode
public void setMode(TracingMode mode)
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If 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.
mode
- Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream
service if it contains a tracing header with "sampled=1". If 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.TracingMode
public TracingConfig withMode(TracingMode mode)
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If 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.
mode
- Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream
service if it contains a tracing header with "sampled=1". If 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.TracingMode
public String toString()
toString
in class Object
Object.toString()
public TracingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.