Skip to content

Commit

Permalink
[java] Method was renamed in opentelemetry 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 17, 2020
1 parent 612295f commit 628080f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -55,6 +55,7 @@ static SpanExporter findJaegerExporter() {

return toReturn;
} catch (ReflectiveOperationException e) {
e.printStackTrace();
return null;
}
}
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 628080f

Please sign in to comment.