Hi,
I followed these instructions to set the transaction name for the current trace using the custom Java SDK but I get a NoClassDefFoundError
. I'm using the latest SolarWinds java agent (2.0.0) and declare the same version in my pom file as follows:
<dependency> <groupId>io.github.appoptics</groupId> <artifactId>solarwinds-otel-sdk</artifactId> <version>2.0.0</version> </dependency>
Whenever I call SolarWindsAgent.setTransactionName(transactionName)
in either a custom SpanProcessor
or a java instrumentation advice class I get a NoClassDefFoundError. I even tried declaring the SolarWindsAgent class as a helper in the InstrumentationModule
class as follows:
@Override
public boolean isHelperClass(String className) {
return className.startsWith("com.solarwinds");
}
I'm wondering what I need to do to set the transaction name programmatically using SolarWinds custom Java SDK.