aws / aws/aws-xray-sdk-python

mysql-connector 9.2.0 - TypeError: 'MySQLConnection' object is not iterable

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
338
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Currents deps

mysql-connector-python==9.2.0
aws-lambda-powertools==3.6.0
aws_xray_sdk==2.14.0

Then in the lambda I notice this in the logs

```
Traceback (most recent call last):
File "/var/task/aws_xray_sdk/core/utils/conversion.py", line 22, in metadata_to_dict
for item in obj:
^^^
TypeError: 'MySQLConnection' object is not iterable
```

My integration of xray is just

```python
from aws_xray_sdk.core import xray_recorder
xray_recorder.configure(service=os.getenv("IMPORTER_POWERTOOLS_SERVICE_NAME"))
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.