Skip to content

Commit 4c9261d

Browse files
authored
Merge pull request #210 from kapilt/exempt-put-records
add puttracesegments to boto whitelist avoid a catch 22
2 parents 96134f6 + 9bf68f6 commit 4c9261d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws_xray_sdk/ext/botocore/patch.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def _xray_traced_botocore(wrapped, instance, args, kwargs):
3131
service = instance._service_model.metadata["endpointPrefix"]
3232
if service == 'xray':
3333
# skip tracing for SDK built-in sampling pollers
34-
if 'GetSamplingRules' in args or 'GetSamplingTargets' in args:
34+
if ('GetSamplingRules' in args or
35+
'GetSamplingTargets' in args or
36+
'PutTraceSegments' in args):
3537
return wrapped(*args, **kwargs)
3638
return xray_recorder.record_subsegment(
3739
wrapped, instance, args, kwargs,

0 commit comments

Comments
 (0)