Repository navigation
refactor: migrate OpenTelemetry configuration from agent to Spring Boot Starter - #1730
Conversation
…ot starter Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
7f197e0 to
b9e5daf
Compare
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
|
This topic is maybe a bit hard to follow in an asynchronous way and may deserve a dedicated design session. What do you think about organizing a specific chat/video call for that? |
|
@lbroudoux I think it would be a great idea to make a call to design all of this. I am available everyday xD, when are you available? |
I'm available tomorrow morning and afternoon. Let's ping via Discord. |
lbroudoux
left a comment
There was a problem hiding this comment.
Just introduce the variable for opentelemetry version and we will be ready to go!
…guration Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
lbroudoux
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the explanations and applying the changes.
|
i think that RestControllerIT.testProxyFallbackWithDelay is a flaky test, i can't replicate it in local |
Signed-off-by: Laurent Broudoux <[email protected]>
Description
Why?
We need to migrate to spring boot starter because:
What do we lose?
Breaking
This PR currently breaks the default opentelemetry configuration. As the Java Agent and the Spring Boot Starter does not use the same ENV vars for enabling and disabling the opentelemetry configuration
The JAVA Agent uses: "OTEL_JAVAAGENT_ENABLED" to enable the agent
But spring boot starter uses: "OTEL_SDK_DISABLED" to disable the sdk
Futhermore, we cannot completely disable the Spring Boot Start with OTEL_SDK_DISABLED, as we want to use Opentelemetry to collect the traces in memory for #1728 that is why in this PR the SDK is not disabled but the exporters are set to none. The best option would be to add something like
in the application.properties but it doesn't work that way xD. We could also implement an entrypoint to do this but before going futher i want to discuss a bit about it
Related issue(s)
See #1728