You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to report an issue in an environment using Spring Boot, Spring Data JPA, and MySQL Connector/J 8.4.0, where trace spans for MySQL queries are not being recorded in the Datadog trace menu. The issue occurs when the JDBC option rewriteBatchedStatements=true is used and batch insert queries are executed. The expected cause is that when executing batch insert queries, the MySQL Connector/J ClientPreparedStatement class creates a batchedStatement, and during this process, the Datadog context of the original statement may not be propagated.
The text was updated successfully, but these errors were encountered:
junyeong-jang-kurly
changed the title
Datadog Trace Span Issue with MySQL Batch Inserts in Spring Boot Environment
Datadog Trace Span Issue with MySQL Batch Inserts using MySQL Connector/J
Jun 21, 2024
Hello,
I would like to report an issue in an environment using Spring Boot, Spring Data JPA, and MySQL Connector/J 8.4.0, where trace spans for MySQL queries are not being recorded in the Datadog trace menu. The issue occurs when the JDBC option
rewriteBatchedStatements=true
is used and batch insert queries are executed. The expected cause is that when executing batch insert queries, the MySQL Connector/JClientPreparedStatement
class creates abatchedStatement
, and during this process, the Datadog context of the original statement may not be propagated.Please look into this issue.
Thank you.
When using MySQL Connector/J 8.4.0
When using MariaDB Connector/J 2.6.2
Here is my sample code for test.
The text was updated successfully, but these errors were encountered: