Hi @Kessler, Oded apologies for the delayed response. I have received some information though.
As far as temporal.io, that is not supported for auto instrumentation, as it is not listed on https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-add-modify?tabs=java#included-instrumentation-libraries.
However, one suggestion is to follow the steps outlined in Configure Azure Monitor Application Insights for Spring Boot - Azure Monitor | Microsoft Learn for inline instrumentation. If you're still continuing to see issues, then we'll need to work with you offline.
EDIT 29 Nov 2023
You were able to resolve your issue by running your application with App Insights java agent 3.4.18 via JVM options javaagent:"applicationinsights-agent-3.4.18.jar
. You edit your pom.xml to include the following dependencies and wrapped each activity with @WithSpan
attribute.
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
<version>1.32.0</version>
</dependency>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>1.32.0</version>
</dependency>
Running the full flow shows the end-to-end transaction as expected. Your steps are very similar to the documentation, which uses an older version of the opentelemetry-instrumentation-annotations
.