javaagent graceful shutdown #14391
Unanswered
shintasmith
asked this question in
Q&A
Replies: 1 comment 1 reply
-
so from your stack trace the error is
Which looks like there's some race condition where the connectivity to your collector is broken before the JVM shuts down. When you mention istio, is that because you are proxying your calls to your collector through istio? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are running our Java app using the OpenTelemetry javaagent, i.e: using
-javaagent:$APP_HOME/opentelemetry-javaagent.jar
option, inside a Kubernetes pod that also hasistio
proxy container running.On pod termination, the javaagent always logs errors (see attached stacktrace)
otel-stacktrace.txt
We tried setting some configuration (
terminationDrainDuration
) on the istio proxy but that doesn't solve this problem.How do we configure OpenTelemetry javaagent to be aware of shutdown and to just not flush metrics out?
Beta Was this translation helpful? Give feedback.
All reactions