Hristijan
10/17/2024, 5:41 AMe5l
10/17/2024, 7:15 AMCarlos Garcia
11/15/2024, 3:49 PMopentelemetry-ktor-3.0
. I’m using
io.opentelemetry.instrumentation:opentelemetry-ktor-3.0:2.10.0-alpha
with the agent
io.opentelemetry.javaagent:opentelemetry-javaagent:2.10.0
and I’m getting a weird exception using io.ktor:ktor-server-auth
for the OAuth flow when trying to exchange the access code for the access token
Authentication failed for /SOME-URL-I-CANT-SHARE with error Failed to request OAuth2 access token due to java.lang.ClassCastException: class io.opentelemetry.javaagent.instrumentation.opentelemetryapi.context.AgentContextWrapper cannot be cast to class io.opentelemetry.javaagent.shaded.io.opentelemetry.context.Context (io.opentelemetry.javaagent.instrumentation.opentelemetryapi.context.AgentContextWrapper is in unnamed module of loader 'app'; io.opentelemetry.javaagent.shaded.io.opentelemetry.context.Context is in unnamed module of loader 'bootstrap')
do you have any idea what could be causing the issue?e5l
11/15/2024, 3:51 PMCarlos Garcia
11/15/2024, 4:26 PMinstall(KtorClientTracing) {
setOpenTelemetry(openTelemetry)
}
makes that exception go away, so it should be something to do with the client tracingCarlos Garcia
11/15/2024, 4:38 PMio.ktor:ktor-server-auth
if I disable the plugin any calls from my http client end up failing having the same ClassCastException
Maria Skripchenko
11/18/2024, 10:51 AMCarlos Garcia
11/18/2024, 2:39 PMCarlos Garcia
03/18/2025, 5:04 PMopentelemetry-ktor-3.0
(2.14.0) and the issue seems to be fixede5l
03/18/2025, 5:05 PMCarlos Garcia
03/20/2025, 11:41 AMinstall(KtorClientTelemetry) {
setOpenTelemetry(openTelemetry)
}
in the new service I tested it, it didn’t use ite5l
03/20/2025, 11:42 AMe5l
03/20/2025, 11:42 AMCarlos Garcia
03/20/2025, 12:49 PMCarlos Garcia
03/20/2025, 12:50 PM