[java] Method was renamed in opentelemetry 2.4
@@ -55,6 +55,7 @@ static SpanExporter findJaegerExporter() {
return toReturn;
} catch (ReflectiveOperationException e) {
+ e.printStackTrace();
return null;
}
}
@@ -99,7 +100,7 @@ private static Object createJaegerGrpcSpanExporter(Object jaegerChannel) throws
Method setChannel = builderClazz.getMethod("setChannel", managedChannelClazz);
builderObj = setChannel.invoke(builderObj, jaegerChannel);
- Method setDeadline = builderClazz.getMethod("setDeadline", long.class);
+ Method setDeadline = builderClazz.getMethod("setDeadlineMs", long.class);
builderObj = setDeadline.invoke(builderObj, 3000);
Method build = builderClazz.getMethod("build");
