opentelemetry-python
opentelemetry-python copied to clipboard
Unable to measure TAT of mysql-connector
Describe your environment
OS
- AmazonLinux (Lambda)
Python version
- Python 3.13
Package version
- mysql-connector 9.3.0
- pymysql 1.1.1
- opentelemetry-python 1.29.0
What happened?
To measure the TAT of database operations, I installed Otel in Lambda Python with reference to the following.
- https://aws-otel.github.io/docs/getting-started/lambda/lambda-python
I was able to measure the TAT of pymysql. However, I can't properly measure the TAT of mysql-connector. (The TAT appears to be quite short..)
Expected Result
It is possible to accurately measure the TAT of mysql-connector.
@bit12345tib
The AWS folks might be able to shed some more light on this as we do not really know the inner workings of how lambda is being integrated with OpenTelemetry. I suggest opening up an issue with them. On a side note, are you able to replicate this behavior when not using lambda?