aws-otel-java-instrumentation
aws-otel-java-instrumentation copied to clipboard
Clarification about how to autoinstrumenting a spring-boot 3 with micrometer tracing and ADOT agent
It's not clear to me according to documentation, how should I provide autoinstrumentation for my lambdas. I mean, my lambdas are using spring-cloud-function dependencies in order to build my lambdas.
Now I'm trying to configure auto-instrumentation.
Several question here.
- I'm aware I'm able to download adot-java-agent jar file and configure
JAVA_TOOL_OPTIONS. My question here is, I'm using jar-style lambda deployment. I mean, I build my code jar file, and I create a new lambda according to this file. I mean, I'm not providing a docker image. Is there anyway to use adot-java-agent with this approach? - According to documentation, I'm able to use
adot-java-agent, but it seems to be ignored when my service starts. - Currently, I'm using spring-boot 3 micometer tracing with opentelemtry. It's not clear to how adot-java-agent fits here. Could I use adot-java-agent with spring-boot 3 + micrometer tracing? Here my related pom dependencies:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing</artifactId>
</dependency>
<!-- Adds the Tracer Implementation -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<!-- Adds an exporter to store the traces -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled
This issue was closed because it has been marked as stale for 30 days with no activity.