TracingConfig
¶
Used by
-
AsyncSageMakerClient Operationscreate_endpoint_config -
SageMakerClient Operationscreate_endpoint_config
Source code in docs_src/capo_sagemaker/types/tracing_config.py
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.