Skip to content

Commit dc27dc3

Browse files
Dunedanhaotianw465
authored andcommitted
Remove error flags from boto_utils (#11)
Error flags are already handled by the Entity class, so they're redundant here.
1 parent fd09925 commit dc27dc3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

aws_xray_sdk/ext/boto_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ def _aws_error_handler(exception, stack, subsegment, aws_meta):
6969
status_code = response_metadata.get('HTTPStatusCode')
7070

7171
subsegment.put_http_meta(http.STATUS, status_code)
72-
if status_code == 429:
73-
subsegment.add_throttle_flag()
74-
if status_code / 100 == 4:
75-
subsegment.add_error_flag()
76-
7772
subsegment.add_exception(exception, stack, True)
7873

7974

@@ -131,4 +126,4 @@ def _process_descriptor(descriptor, value, aws_meta):
131126
if 'get_keys' in descriptor and descriptor['get_keys']:
132127
value = value.keys()
133128

134-
aws_meta[descriptor['rename_to']] = value
129+
aws_meta[descriptor['rename_to']] = value

0 commit comments

Comments
 (0)