aws-otel-java-instrumentation icon indicating copy to clipboard operation
aws-otel-java-instrumentation copied to clipboard

Clarification about how to autoinstrumenting a spring-boot 3 with micrometer tracing and ADOT agent

Open jeusdi opened this issue 1 year ago • 1 comments

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.

  1. 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?
  2. According to documentation, I'm able to use adot-java-agent, but it seems to be ignored when my service starts.
  3. 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>

jeusdi avatar Apr 18 '24 21:04 jeusdi

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

github-actions[bot] avatar Jul 21 '24 20:07 github-actions[bot]

This issue was closed because it has been marked as stale for 30 days with no activity.

github-actions[bot] avatar Aug 25 '24 20:08 github-actions[bot]