Closed kcsurapaneni closed 6 months ago
Hi, Can you try with the latest Micrometer Tracing 1.2.1 which fixed the annotation with timestamp=0. (It’ll come with Boot 3.2.1)
Hello @ttddyy , I attempted to address the issue by incorporating io.micrometer:micrometer-tracing-bridge-otel:1.2.1
, but unfortunately, the problem persists. You can review the situation in the following branch: GitHub Repository - Issue Branch.
Can you debug to see what is the timestamp of the span annotations? The connection span creates ‘acquired’ and ‘commit’ annotations.
I’m out this week and don’t have pc. I’ll try to look into it next week if time permits.
@kcsurapaneni I looked your sb_3_2_0_db_and_datasource_micrometer_tracing_and_mt_1_2_1
branch.
> ./mvnw dependency:tree -Dincludes=io.micrometer:micrometer-tracing
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.observability:app >------------------------
[INFO] Building app 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.6.1:tree (default-cli) @ app ---
[INFO] com.observability:app:jar:0.0.1-SNAPSHOT
[INFO] \- io.micrometer:micrometer-tracing-bridge-otel:jar:1.2.1:compile
[INFO] \- io.micrometer:micrometer-tracing:jar:1.2.0:compile
[INFO] ------------------------------------------------------------------------
...
It is not using micrometer-tracing=1.2.1
.
This is because you specified micrometer-tracing-bridge-otel=1.2.1
in the pom. However, since it uses spring boot 3.2.0
as the parent pom, the micrometer-tracing
transitive dependency resolved to 1.2.0
.
Please make sure to use the micrometer-tracing=1.2.1
and check whether the problem still persists.
If it does, please provide the timestamp
value for those annotations.
Appreciate your input, @ttddyy. You're correct. I mistakenly assumed that upgrading io.micrometer:micrometer-tracing-bridge-otel:1.2.1
would automatically bump up io.micrometer:micrometer-tracing
to the same version, but it didn't. After updating the Spring Boot version to 3.2.1
, both of these versions were upgraded to 1.2.1
, resolving the issue. My apologies for not thoroughly investigating this earlier.
Description:
Issue:
When using the
datasource-micrometer-spring-boot
dependency in a Spring Boot 3.2.0 project, an error is encountered in the logs with the following stack trace:Investigation:
Initially, it was suspected that the issue might be with
spring-projects
oropen-telemetry
. A detailed investigation was carried out, and it was found that the error persists with thedatasource-micrometer-spring-boot
dependency. There is no error when this dependency is not added, as demonstrated in this branch: observability/tree/sb_3_2_0_db. However, when adding the dependency, the error occurs, as shown in this branch: observability/tree/sb_3_2_0_db_and_datasource_micrometer_tracing.References:
The issue has been discussed on Stack Overflow: Exception in Observability stack after upgrading Spring Boot from 3.1.3 to 3.2.0.
Reproduction Steps:
Expected Behavior:
The application should run without errors when using the
datasource-micrometer-spring-boot
dependency in Spring Boot 3.2.0.Attachments:
datasource-micrometer-spring-boot
dependencydatasource-micrometer-spring-boot
dependencyEnvironment Information: