public final class TestHandler
extends io.opencensus.trace.export.SpanExporter.Handler
SpanExporter.Handler for testing only.| Constructor and Description |
|---|
TestHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
export(Collection<io.opencensus.trace.export.SpanData> spanDataList) |
List<io.opencensus.trace.export.SpanData> |
waitForExport(int numberOfSpans)
Waits until we received numberOfSpans spans to export.
|
public void export(Collection<io.opencensus.trace.export.SpanData> spanDataList)
export in class io.opencensus.trace.export.SpanExporter.Handler@Nullable public List<io.opencensus.trace.export.SpanData> waitForExport(int numberOfSpans)
SpanData objects, otherwise null if the current thread is interrupted.numberOfSpans - the number of minimum spans to be collected.SpanData objects, otherwise null if the current
thread is interrupted.