/** * Marks an <em>OpenTracing</em> span as erroneous and logs an exception. * <p> * This method does <em>not</em> finish the span. * * @param span The span to mark. * @param error The exception that has occurred. * @throws NullPointerException if error is {@code null}. */ public static void logError(final Span span, final Throwable error) { if (span != null) { logError(span, getErrorLogItems(error)); } }
/** * Marks an <em>OpenTracing</em> span as erroneous and logs an exception. * <p> * This method does <em>not</em> finish the span. * * @param span The span to mark. * @param error The exception that has occurred. * @throws NullPointerException if error is {@code null}. */ public static void logError(final Span span, final Throwable error) { if (span != null) { logError(span, getErrorLogItems(error)); } }