Skip to content

Commit 63cc648

Browse files
author
Jeel Mehta
committed
Gen-AI python implementation
1 parent df1045f commit 63cc648

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def on_success(self, span: Span, result: Dict[str, Any]):
345345

346346
except json.JSONDecodeError:
347347
print("Error: Unable to parse the response body as JSON")
348-
except Exception as e:
348+
except Exception as e: # pylint: disable=broad-exception-caught, invalid-name
349349
print(f"Error processing response: {str(e)}")
350350
finally:
351351
# Make sure to close the stream

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_instrumentation_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _test_unpatched_gevent_instrumentation(self):
177177
self.assertFalse(gevent.monkey.is_module_patched("queue"), "gevent queue module has been patched")
178178
self.assertFalse(gevent.monkey.is_module_patched("contextvars"), "gevent contextvars module has been patched")
179179

180-
# pylint: disable=too-many-statements
180+
# pylint: disable=too-many-statements, too-many-locals
181181
def _test_patched_botocore_instrumentation(self):
182182
# Kinesis
183183
self.assertTrue("kinesis" in _KNOWN_EXTENSIONS)

0 commit comments

Comments
 (0)