in aws_xray_sdk/ext/boto_utils.py [0:0]
def _extract_whitelisted_params(service, operation,
aws_meta, args, kwargs, response):
# check if service is whitelisted
if service not in whitelist['services']:
return
operations = whitelist['services'][service]['operations']
# check if operation is whitelisted
if operation not in operations:
return
params = operations[operation]
# record whitelisted request/response parameters
if 'request_parameters' in params:
_record_params(params['request_parameters'], args[1], aws_meta)
if 'request_descriptors' in params:
_record_special_params(params['request_descriptors'],
args[1], aws_meta)
if 'response_parameters' in params and response:
_record_params(params['response_parameters'], response, aws_meta)
if 'response_descriptors' in params and response:
_record_special_params(params['response_descriptors'],
response, aws_meta)