diff --git a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py index 743827910e..68fae273aa 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py @@ -117,7 +117,7 @@ def _process_event(self, event): self._content_block["toolUse"]["input"] = json.loads( self._tool_json_input_buf ) - except json.DecodeError: + except json.JSONDecodeError: self._content_block["toolUse"]["input"] = ( self._tool_json_input_buf )