@ThreadSafe public final class InProcessRunningSpanStore extends io.opencensus.trace.export.RunningSpanStore
RunningSpanStore.| Constructor and Description |
|---|
InProcessRunningSpanStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEnabled()
Returns
true if the RunningSpanStore is enabled. |
Collection<io.opencensus.trace.export.SpanData> |
getRunningSpans(io.opencensus.trace.export.RunningSpanStore.Filter filter) |
io.opencensus.trace.export.RunningSpanStore.Summary |
getSummary() |
void |
onEnd(RecordEventsSpanImpl span)
Removes the
Span from the running spans list when the Span ends. |
void |
onStart(RecordEventsSpanImpl span)
Adds the
Span into the running spans list when the Span starts. |
void |
setMaxNumberOfSpans(int maxNumberOfSpans) |
public void onStart(RecordEventsSpanImpl span)
Span into the running spans list when the Span starts.span - the Span that started.public void onEnd(RecordEventsSpanImpl span)
Span from the running spans list when the Span ends.span - the Span that ended.public boolean getEnabled()
true if the RunningSpanStore is enabled.true if the RunningSpanStore is enabled.public io.opencensus.trace.export.RunningSpanStore.Summary getSummary()
getSummary in class io.opencensus.trace.export.RunningSpanStorepublic Collection<io.opencensus.trace.export.SpanData> getRunningSpans(io.opencensus.trace.export.RunningSpanStore.Filter filter)
getRunningSpans in class io.opencensus.trace.export.RunningSpanStorepublic void setMaxNumberOfSpans(int maxNumberOfSpans)
setMaxNumberOfSpans in class io.opencensus.trace.export.RunningSpanStore