opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

Unable to measure TAT of mysql-connector

Open bit12345tib opened this issue 7 months ago • 1 comments

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..)

Image

Expected Result

It is possible to accurately measure the TAT of mysql-connector.

bit12345tib avatar Apr 22 '25 06:04 bit12345tib

@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?

lzchen avatar Apr 24 '25 16:04 lzchen