Package io.trino.testing
Class TestingTelemetry
java.lang.Object
io.trino.testing.TestingTelemetry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTestingTelemetry.CheckedRunnable<E extends Exception> -
Method Summary
Modifier and TypeMethodDescriptioncaptureSpans(TestingTelemetry.CheckedRunnable<R> runnable) static TestingTelemetryio.opentelemetry.api.trace.Tracervoidreset()static <E extends Exception>
voidwithTracing(io.opentelemetry.api.trace.Span span, TestingTelemetry.CheckedRunnable<E> supplier)
-
Method Details
-
getTracer
public io.opentelemetry.api.trace.Tracer getTracer() -
captureSpans
public <R extends Exception> List<io.opentelemetry.sdk.trace.data.SpanData> captureSpans(TestingTelemetry.CheckedRunnable<R> runnable) throws R - Throws:
R
-
reset
public void reset() -
withTracing
public static <E extends Exception> void withTracing(io.opentelemetry.api.trace.Span span, TestingTelemetry.CheckedRunnable<E> supplier) throws E - Throws:
E
-
create
-