elastic / elastic/apm-agent-java
Tracing JDBC connection creation
Open
enhancement
- Dominant language
- Java
- Stars
- 594
- Forks
- 338
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 25
Description
JDBC open connection and resultSet.next() is not logging in span
```
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup(dsName);
conn=ds.getConnection();
stmt=conn.createStatement();
rset=stmt.executeQuery("select a.* from editor.cw_news a");
while (rset.next()){
out.print("
"+ rset.getString("newstitle"));
}
```
Transaction show just the select span and there is no logging for open connection time and resultSet retrieve time
Contributor guide
Assessment
This issue has not been assessed yet.