From 6dc5ac74dce97f35deebfff3b5e263b989daf1f2 Mon Sep 17 00:00:00 2001 From: liustve Date: Thu, 12 Dec 2024 23:13:31 +0000 Subject: [PATCH] linting fix --- .../src/amazon/opentelemetry/distro/patches/_bedrock_patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py index 529b5e1a..d14ddd9f 100644 --- a/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py +++ b/aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py @@ -338,7 +338,7 @@ def on_success(self, span: Span, result: Dict[str, Any]): if not model_id: return - + if "body" in result and isinstance(result["body"], StreamingBody): original_body = None try: