aws / aws/aws-xray-sdk-python

IndexError when using AWS X-Ray SDK with SQLAlchemy

Abierto
#392 1 comentario 0 reacciones 1 asignado Reclamado por @carolabadeer Ver en GitHub
question
Lenguaje dominante
Python
Estrellas
339
Forks
147
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I am encountering an issue when using the AWS X-Ray SDK to trace my AWS Lambda function, which utilizes SQLAlchemy for database operations. When invoking the Lambda function, I receive the following error:

```
Error getting the sanitized query
Traceback (most recent call last):
File "/opt/python/aws_xray_sdk/ext/sqlalchemy_core/patch.py", line 46, in _sql_meta
if isinstance(args[0], ClauseElement):
IndexError: tuple index out of range
```
I am using the patch_all() function from the AWS X-Ray SDK to patch all available libraries, including SQLAlchemy:
Could you please help me understand the cause of this error and suggest a possible solution? Let me know if you need more information about my implementation or environment.

aws_xray_sdk == 2.12.0
Sqlalchemy == 2.0.14

I added lambda Active tracing too.

Many thanks

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.