Fix two beforeFinish() calls
MODIFY
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/server/TracingServerInterceptor.java
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/server/TracingServerInterceptor.java
@@ -105,12 +105,12 @@ public class TracingServerInterceptor implements ServerInterceptor {
delegate().onMessage(message);
} catch (final Throwable e) {
DECORATE.onError(span, e);
- DECORATE.beforeFinish(span);
+ DECORATE.beforeFinish(this.span);
this.span.finish();
throw e;
} finally {
scope.setAsyncPropagation(false);
- DECORATE.afterStart(span);
+ DECORATE.beforeFinish(span);
scope.close();
}
}

Fix two beforeFinish() calls