Latest exporter-auto incompatible with latest opentelemetry agent #263
Labels
bug
Something isn't working
enhancement accepted
An actionable enhancement for which PRs will be accepted
priority: p1
The following combination:
io.opentelemetry.javaagent:opentelemetry-javaagent:1.30.0
(latest, as of now)com.google.cloud.opentelemetry:exporter-auto:0.25.2-alpha:shaded
(latest, as of now)Doesn't work.
java.lang.NoClassDefFoundError: io/opentelemetry/javaagent/shaded/io/opentelemetry/semconv/resource/attributes/ResourceAttributes at shadow.com.google.cloud.opentelemetry.detectors.GCPResource.getAttributes(GCPResource.java:62) at shadow.com.google.cloud.opentelemetry.detectors.GCPResource.createResource(GCPResource.java:77) at io.opentelemetry.sdk.autoconfigure.ResourceConfiguration.configureResource(ResourceConfiguration.java:107) at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.build(AutoConfiguredOpenTelemetrySdkBuilder.java:335) at io.opentelemetry.javaagent.tooling.OpenTelemetryInstaller.installOpenTelemetrySdk(OpenTelemetryInstaller.java:34) at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:121) at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:101) at io.opentelemetry.javaagent.tooling.AgentStarterImpl.start(AgentStarterImpl.java:98) at io.opentelemetry.javaagent.bootstrap.AgentInitializer$1.run(AgentInitializer.java:53) at io.opentelemetry.javaagent.bootstrap.AgentInitializer$1.run(AgentInitializer.java:47) at io.opentelemetry.javaagent.bootstrap.AgentInitializer.execute(AgentInitializer.java:64) at io.opentelemetry.javaagent.bootstrap.AgentInitializer.initialize(AgentInitializer.java:46) at io.opentelemetry.javaagent.OpenTelemetryAgent.startAgent(OpenTelemetryAgent.java:57) at io.opentelemetry.javaagent.OpenTelemetryAgent.premain(OpenTelemetryAgent.java:45) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source) Caused by: java.lang.ClassNotFoundException: io.opentelemetry.javaagent.shaded.io.opentelemetry.semconv.resource.attributes.ResourceAttributes at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ... 20 more
If I downgrade the opentelemetry java agent to 1.28.0, it works.
The text was updated successfully, but these errors were encountered: