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: