Skip to content

TracingConfig

Source code in docs_src/capo_sagemaker/types/tracing_config.py
class TracingConfig(TypedDict, closed=True):
    enable_tracing: NotRequired["capo_sagemaker.types.enable_tracing.EnableTracing"]
    """<p>Specifies whether tracing is enabled. Set to <code>true</code> to send traces to the log group. If you don't specify <code>TracingConfig</code>, tracing is disabled.</p>"""
    initial_sampling_percentage: NotRequired[
        "capo_sagemaker.types.sampling_percentage.SamplingPercentage"
    ]
    """<p>The percentage of inference requests to trace. Valid values: <code>0</code> to <code>100</code>. With <code>0</code>, SageMaker traces no requests.</p>"""
    large_payload_delivery_s3_uri: NotRequired[
        "capo_sagemaker.types.destination_s3_uri.DestinationS3Uri"
    ]
    """<p>The Amazon S3 URI that SageMaker delivers large request and response payloads of traced requests to. SageMaker truncates payloads larger than 512 KiB in the trace and delivers the full payload to the specified S3 URI. If you don't specify one, only the truncated payload is available.</p>"""
    kms_key_id: NotRequired["capo_sagemaker.types.kms_key_id.KmsKeyId"]
    """<p>The ID or ARN of the Key Management Service key that SageMaker uses to encrypt the payloads that it delivers to <code>LargePayloadDeliveryS3Uri</code>. If you specify a key, you also need to specify <code>LargePayloadDeliveryS3Uri</code>.</p> <p>The <code>KmsKeyId</code> can be any of the following formats, in the endpoint's Region:</p> <ul> <li> <p>Key ID – the unique identifier of the key</p> </li> <li> <p>Key ARN – the Amazon Resource Name (ARN) of the key</p> </li> <li> <p>Alias name – an alias for the key, starting with <code>alias/</code> </p> </li> <li> <p>Alias ARN – the ARN of the alias</p> </li> </ul>"""

enable_tracing instance-attribute

enable_tracing: NotRequired[EnableTracing]

Specifies whether tracing is enabled. Set to true to send traces to the log group. If you don't specify TracingConfig, tracing is disabled.

initial_sampling_percentage instance-attribute

initial_sampling_percentage: NotRequired[SamplingPercentage]

The percentage of inference requests to trace. Valid values: 0 to 100. With 0, SageMaker traces no requests.

kms_key_id instance-attribute

kms_key_id: NotRequired[KmsKeyId]

The ID or ARN of the Key Management Service key that SageMaker uses to encrypt the payloads that it delivers to LargePayloadDeliveryS3Uri. If you specify a key, you also need to specify LargePayloadDeliveryS3Uri.

The KmsKeyId can be any of the following formats, in the endpoint's Region:

  • Key ID – the unique identifier of the key

  • Key ARN – the Amazon Resource Name (ARN) of the key

  • Alias name – an alias for the key, starting with alias/

  • Alias ARN – the ARN of the alias

large_payload_delivery_s3_uri instance-attribute

large_payload_delivery_s3_uri: NotRequired[DestinationS3Uri]

The Amazon S3 URI that SageMaker delivers large request and response payloads of traced requests to. SageMaker truncates payloads larger than 512 KiB in the trace and delivers the full payload to the specified S3 URI. If you don't specify one, only the truncated payload is available.