org.infinispan.telemetry.InfinispanSpan Maven / Gradle / Ivy
package org.infinispan.telemetry;
import java.util.function.BiConsumer;
public interface InfinispanSpan extends BiConsumer {
SafeAutoClosable makeCurrent();
void complete();
void recordException(Throwable throwable);
@Override
default void accept(T ignored, Throwable throwable) {
if (throwable != null) {
recordException(throwable);
}
complete();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy