Tracing for Spring Data CoroutineCrudRepository methods is timed incorrectly
ofelbaum opened this issue · comments
Describe the bug
It looks like traces collected for Spring Data repositories (backed by CoroutineCrudRepository) are reflecting just "assembly" phase. They typically are measured in microseconds (μs).
Steps to reproduce
Here is the project to demonstrate the issue https://github.com/ofelbaum/r2dbc-coroutine-demo
Expected behavior
Span duration for spans collected by "io.opentelemetry.spring-data" instrumentation is reflecting actual duration of an RDBMS operation
Actual behavior
Span duration for spans collected by "io.opentelemetry.spring-data" instrumentation is not reflecting actual duration of an RDBMS operation
Javaagent or library instrumentation version
Environment
JDK: Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
OS: macOS 14.2.1
Additional context
Looks like this issue is closely related to another #9500
@laurit Thanks. I appreciate your help with fixing this.
As it was mentioned the issue might be fixed in #11168.
I upgraded javaagent library from 2.2.0 to 2.4.0 in sample demo I prepared, but still have the issue :(