class TracingCallback {

  static Callback create(@Nullable Callback delegate, Span span, CurrentTraceContext current) {
    if (delegate == null) return new FinishSpan(span);
    return new DelegateAndFinishSpan(delegate, span, current);
  }

}