Agent and spring boot starter together? #12386
Replies: 2 comments 5 replies
-
You can use the OpenTelemetry Spring Boot starter without the OpenTelemetry Java agent.
Yes, if it is covered by the out the box instrumentation of the OpenTelemetry Spring Boot starter: https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/out-of-the-box-instrumentation/ You can also enable additional instrumentation: https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/additional-instrumentations/
If New Relic supports OTLP. You have to check with New Relic.
Our automatic tests are checking the features from Spring Boot 2.6. We are not sure that all the features work with Spring Boot 2.0.3. If you see an issue with Spring Boot 2.0.3, we could have a look. |
Beta Was this translation helpful? Give feedback.
-
@jeanbisutti Hi. I have looked through many documents, and it seems that to customize OpenTelemetry metrics, I can either use the OpenTelemetry Spring Starter or write an OpenTelemetry agent extension. My idea is to just use the OpenTelemetry agent and then write a meter implementation. The OpenTelemetry agent should be able to automatically discover this meter implementation and export metrics to the OpenTelemetry collector. Is this possible? I saw in the extension documentation that it mentions using the AutoService annotation, but does this mean that I definitely need to package it as a JAR and use -Dotel.javaagent.extensions for it to work properly? Is there an SPI provided by the agent to implement automatic discovery, so that developers don’t have to spend extra effort packaging it into a JAR? |
Beta Was this translation helpful? Give feedback.
-
WE have tried the new relic agent and the OT agent, both produce too much traffic (expensive) and neither instruments things like scheduled processes doing work or que listeners doing work. We assume we need to add our own instrumentation. We are considering micrometer (excellent documentation, mature product) or OT spring boot sdk.
The question is, do we need both the OT anent and OT Spring boot or is it one or the other?
IF we go with only the spring boot SDK:
I've just seen that the OT spring boot project only supports 2.6 and 3.1. We are stuck on spring boot 2.0.3, so this forces us to use micrometer unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions