Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamon 2.6.3 cannot work with data dog agent , below error is thrown #153

Open
abhijith-vr opened this issue Oct 3, 2023 · 0 comments
Open

Comments

@abhijith-vr
Copy link

Application Code - Scala
Framework - Akka
JDK - 11
Kamon 2.6.3

[ERROR] [10/03/2023 14:43:58.811] [apiservices-core-akka.actor.default-dispatcher-5] [akka.dispatch.Dispatcher] class ch.qos.logback.classic.spi.LoggingEvent cannot be cast to class kamon.instrumentation.context.HasContext (ch.qos.logback.classic.spi.LoggingEvent and kamon.instrumentation.context.HasContext are in unnamed module of loader 'app') 2023-10-03T14:43:58.837933775Z java.lang.ClassCastException: class ch.qos.logback.classic.spi.LoggingEvent cannot be cast to class kamon.instrumentation.context.HasContext (ch.qos.logback.classic.spi.LoggingEvent and kamon.instrumentation.context.HasContext are in unnamed module of loader 'app') at kamon.instrumentation.logback.AppendLoopOnAppendersAdvice$.enter(LogbackInstrumentation.scala:84) 2023-10-03T14:43:58.837939955Z at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:47) 2023-10-03T14:43:58.837942935Z at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270) 2023-10-03T14:43:58.837945735Z at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257) 2023-10-03T14:43:58.837948095Z at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421) 2023-10-03T14:43:58.837974545Z at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383) at ch.qos.logback.classic.Logger.warn(Logger.java:692) 2023-10-03T14:43:58.837979305Z at kamon.module.ModuleRegistry.createModule(ModuleRegistry.scala:368) at kamon.module.ModuleRegistry.$anonfun$load$3(ModuleRegistry.scala:124) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.Option.fold(Option.scala:158) at kamon.module.ModuleRegistry.$anonfun$load$2(ModuleRegistry.scala:127) at kamon.module.ModuleRegistry.$anonfun$load$2$adapted(ModuleRegistry.scala:120) 2023-10-03T14:43:58.837996325Z at scala.collection.immutable.List.foreach(List.scala:388) at kamon.module.ModuleRegistry.load(ModuleRegistry.scala:120) 2023-10-03T14:43:58.838002625Z at kamon.ModuleManagement.loadModules(ModuleManagement.scala:99) 2023-10-03T14:43:58.838005155Z at kamon.ModuleManagement.loadModules$(ModuleManagement.scala:98) 2023-10-03T14:43:58.838007485Z at kamon.Kamon$.loadModules(Kamon.scala:19) 2023-10-03T14:43:58.838009735Z at kamon.Init.init(Init.scala:47) 2023-10-03T14:43:58.838011935Z at kamon.Init.init$(Init.scala:40) 2023-10-03T14:43:58.838014185Z at kamon.Kamon$.init(Kamon.scala:19) 2023-10-03T14:43:58.838016625Z at org.digi.ceon.service.core.Application$.startMetrics(Application.scala:128) 2023-10-03T14:43:58.838019135Z at org.digi.ceon.service.core.Application$.$anonfun$initServer$1(Application.scala:105) 2023-10-03T14:43:58.838021965Z at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60) 2023-10-03T14:43:58.838024245Z at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55) at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92) 2023-10-03T14:43:58.838028955Z at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81) 2023-10-03T14:43:58.838033585Z at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92) 2023-10-03T14:43:58.838035805Z at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:49) at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) 2023-10-03T14:43:58.838042495Z at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) 2023-10-03T14:43:58.838056315Z at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) 2023-10-03T14:43:58.838058455Z 2023-10-03T14:44:05.268003140Z [kamon-agent-periodic-resubmitter-scheduler-1] ERROR 2023-10-03 14:44:05 Logger : Error => ch.qos.logback.classic.spi.LoggingEvent with message Cannot resolve type description for datadog.trace.agent.tooling.log.UnionMap. Class loader: jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be: kanela.agent.libs.net.bytebuddy.pool.TypePool$Resolution$NoSuchTypeException: Cannot resolve type description for datadog.trace.agent.tooling.log.UnionMap at kanela.agent.libs.net.bytebuddy.pool.TypePool$Resolution$Illegal.resolve(TypePool.java:167) 2023-10-03T14:44:05.268153242Z at kanela.agent.libs.net.bytebuddy.dynamic.scaffold.ClassWriterStrategy$FrameComputingClassWriter.getCommonSuperClass(ClassWriterStrategy.java:118) 2023-10-03T14:44:05.268232322Z at kanela.agent.libs.net.bytebuddy.jar.asm.SymbolTable.addMergedType(SymbolTable.java:1202) 2023-10-03T14:44:05.268236152Z at kanela.agent.libs.net.bytebuddy.jar.asm.Frame.merge(Frame.java:1299) 2023-10-03T14:44:05.268239582Z at kanela.agent.libs.net.bytebuddy.jar.asm.Frame.merge(Frame.java:1244) 2023-10-03T14:44:05.268242912Z at kanela.agent.libs.net.bytebuddy.jar.asm.MethodWriter.computeAllFrames(MethodWriter.java:1611) at kanela.agent.libs.net.bytebuddy.jar.asm.MethodWriter.visitMaxs(MethodWriter.java:1547) 2023-10-03T14:44:05.268248792Z at kanela.agent.libs.net.bytebuddy.jar.asm.MethodVisitor.visitMaxs(MethodVisitor.java:773) 2023-10-03T14:44:05.268254122Z at kanela.agent.libs.net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining$WithFullProcessing$RedefinitionClassVisitor$CodePreservingMethodVisitor.visitMaxs(TypeWriter.java:5554) 2023-10-03T14:44:05.268257863Z at kanela.agent.libs.net.bytebuddy.jar.asm.ClassReader.readCode(ClassReader.java:2665) at kanela.agent.libs.net.bytebuddy.jar.asm.ClassReader.readMethod(ClassReader.java:1514) 2023-10-03T14:44:05.268264503Z at kanela.agent.libs.net.bytebuddy.jar.asm.ClassReader.accept(ClassReader.java:744) 2023-10-03T14:44:05.268267213Z at kanela.agent.libs.net.bytebuddy.jar.asm.ClassReader.accept(ClassReader.java:424) 2023-10-03T14:44:05.268269913Z at kanela.agent.libs.net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4014) at kanela.agent.libs.net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) 2023-10-03T14:44:05.268275833Z at kanela.agent.libs.net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4057) at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doTransform(AgentBuilder.java:11903) 2023-10-03T14:44:05.268280964Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11838) at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.access$1700(AgentBuilder.java:11555) at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12318) at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12250) at java.base/java.security.AccessController.doPrivileged(Native Method) 2023-10-03T14:44:05.268294394Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doPrivileged(AgentBuilder.java) 2023-10-03T14:44:05.268309124Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11781) 2023-10-03T14:44:05.268313264Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$ByteBuddy$ModuleSupport.transform(Unknown Source) 2023-10-03T14:44:05.268316004Z at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:563) 2023-10-03T14:44:05.268321264Z at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) 2023-10-03T14:44:05.268323834Z at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:167) 2023-10-03T14:44:05.268326644Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2023-10-03T14:44:05.268332424Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2023-10-03T14:44:05.268336174Z at java.base/java.lang.reflect.Method.invoke(Method.java:566) 2023-10-03T14:44:05.268338744Z at kanela.agent.libs.net.bytebuddy.utility.Invoker$Dispatcher.invoke(Unknown Source) 2023-10-03T14:44:05.268379224Z at kanela.agent.libs.net.bytebuddy.utility.dispatcher.JavaDispatcher$Dispatcher$ForNonStaticMethod.invoke(JavaDispatcher.java:1032) 2023-10-03T14:44:05.268384534Z at kanela.agent.libs.net.bytebuddy.utility.dispatcher.JavaDispatcher$ProxiedInvocationHandler.invoke(JavaDispatcher.java:1162) 2023-10-03T14:44:05.268388164Z at kanela.agent.libs.net.bytebuddy.agent.builder.$Proxy51.retransformClasses(Unknown Source) 2023-10-03T14:44:05.268391074Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation.doApply(AgentBuilder.java:8139) at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector.apply(AgentBuilder.java:7954) 2023-10-03T14:44:05.268398984Z at kanela.agent.libs.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$ResubmissionStrategy$Enabled$ResubmissionInstallationListener.run(AgentBuilder.java:7535) 2023-10-03T14:44:05.268402094Z at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 2023-10-03T14:44:05.268405424Z at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) 2023-10-03T14:44:05.268408024Z at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 2023-10-03T14:44:05.268413894Z at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 2023-10-03T14:44:05.268417094Z at java.base/java.lang.Thread.run(Thread.java:829)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant