Package io.opencensus.trace.export
Class RunningSpanStore.NoopRunningSpanStore
- java.lang.Object
-
- io.opencensus.trace.export.RunningSpanStore
-
- io.opencensus.trace.export.RunningSpanStore.NoopRunningSpanStore
-
- Enclosing class:
- RunningSpanStore
private static final class RunningSpanStore.NoopRunningSpanStore extends RunningSpanStore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.trace.export.RunningSpanStore
RunningSpanStore.Filter, RunningSpanStore.PerSpanNameSummary, RunningSpanStore.Summary
-
-
Field Summary
Fields Modifier and Type Field Description private static RunningSpanStore.SummaryEMPTY_SUMMARY
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopRunningSpanStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<SpanData>getRunningSpans(RunningSpanStore.Filter filter)Returns a list of running spans that match theFilter.RunningSpanStore.SummarygetSummary()Returns the summary of all available data such, as number of running spans.voidsetMaxNumberOfSpans(int maxNumberOfSpans)Sets the maximum number of Spans in thRunningSpanStore.-
Methods inherited from class io.opencensus.trace.export.RunningSpanStore
getNoopRunningSpanStore
-
-
-
-
Field Detail
-
EMPTY_SUMMARY
private static final RunningSpanStore.Summary EMPTY_SUMMARY
-
-
Method Detail
-
getSummary
public RunningSpanStore.Summary getSummary()
Description copied from class:RunningSpanStoreReturns the summary of all available data such, as number of running spans.- Specified by:
getSummaryin classRunningSpanStore- Returns:
- the summary of all available data.
-
getRunningSpans
public java.util.Collection<SpanData> getRunningSpans(RunningSpanStore.Filter filter)
Description copied from class:RunningSpanStoreReturns a list of running spans that match theFilter.- Specified by:
getRunningSpansin classRunningSpanStore- Parameters:
filter- used to filter the returned spans.- Returns:
- a list of running spans that match the
Filter.
-
setMaxNumberOfSpans
public void setMaxNumberOfSpans(int maxNumberOfSpans)
Description copied from class:RunningSpanStoreSets the maximum number of Spans in thRunningSpanStore.0means disabled, by default theRunningSpanStoreis disabled.- Specified by:
setMaxNumberOfSpansin classRunningSpanStore- Parameters:
maxNumberOfSpans- the maximum number of Spans in thRunningSpanStore.
-
-