

# TracingConfig
<a name="API_TracingConfig"></a>

The function's [AWS X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To sample and record incoming requests, set `Mode` to `Active`.

## Contents
<a name="API_TracingConfig_Contents"></a>

 ** Mode **   <a name="lambda-Type-TracingConfig-Mode"></a>
The tracing mode.  
Type: String  
Valid Values: `Active | PassThrough`   
Required: No

## See Also
<a name="API_TracingConfig_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/TracingConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/TracingConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/TracingConfig) 