public class BufferingSpanReporter extends Object implements org.springframework.cloud.sleuth.exporter.SpanReporter
SpanReporter that buffers finished spans.| Constructor and Description |
|---|
BufferingSpanReporter(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.cloud.sleuth.exporter.FinishedSpan> |
drainFinishedSpans()
Return the
timeline by pulling spans from the buffer. |
List<org.springframework.cloud.sleuth.exporter.FinishedSpan> |
getFinishedSpans()
Return a snapshot of currently buffered spans.
|
void |
report(org.springframework.cloud.sleuth.exporter.FinishedSpan span) |
public List<org.springframework.cloud.sleuth.exporter.FinishedSpan> getFinishedSpans()
This will not remove spans from the buffer, see drainFinishedSpans() ()}
for its counterpart.
public List<org.springframework.cloud.sleuth.exporter.FinishedSpan> drainFinishedSpans()
timeline by pulling spans from the buffer.
This removes steps from the buffer, see getFinishedSpans() for its
read-only counterpart.
public void report(org.springframework.cloud.sleuth.exporter.FinishedSpan span)
report in interface org.springframework.cloud.sleuth.exporter.SpanReporterCopyright © 2022 Pivotal Software, Inc.. All rights reserved.