elastic / elastic/apm-agent-java

Tracing JDBC connection creation

Open
#941 23 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.