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
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.trace.export.RunningSpanStore
RunningSpanStore.Filter, RunningSpanStore.PerSpanNameSummary, RunningSpanStore.Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of running spans that match theFilter
.Returns the summary of all available data such, as number of running spans.void
setMaxNumberOfSpans
(int maxNumberOfSpans) Sets the maximum number of Spans in thRunningSpanStore
.Methods inherited from class io.opencensus.trace.export.RunningSpanStore
getNoopRunningSpanStore
-
Field Details
-
EMPTY_SUMMARY
-
-
Constructor Details
-
NoopRunningSpanStore
private NoopRunningSpanStore()
-
-
Method Details
-
getSummary
Description copied from class:RunningSpanStore
Returns the summary of all available data such, as number of running spans.- Specified by:
getSummary
in classRunningSpanStore
- Returns:
- the summary of all available data.
-
getRunningSpans
Description copied from class:RunningSpanStore
Returns a list of running spans that match theFilter
.- Specified by:
getRunningSpans
in 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:RunningSpanStore
Sets the maximum number of Spans in thRunningSpanStore
.0
means disabled, by default theRunningSpanStore
is disabled.- Specified by:
setMaxNumberOfSpans
in classRunningSpanStore
- Parameters:
maxNumberOfSpans
- the maximum number of Spans in thRunningSpanStore
.
-