Package io.opencensus.trace.export
Class RunningSpanStore.PerSpanNameSummary
java.lang.Object
io.opencensus.trace.export.RunningSpanStore.PerSpanNameSummary
- Direct Known Subclasses:
AutoValue_RunningSpanStore_PerSpanNameSummary
- Enclosing class:
RunningSpanStore
Summary of all available data for a span name.
- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int numRunningSpans) Returns a new instance ofPerSpanNameSummary
.abstract int
Returns the number of running spans.
-
Constructor Details
-
PerSpanNameSummary
PerSpanNameSummary()
-
-
Method Details
-
create
Returns a new instance ofPerSpanNameSummary
.- Parameters:
numRunningSpans
- the number of running spans.- Returns:
- a new instance of
PerSpanNameSummary
. - Throws:
IllegalArgumentException
- ifnumRunningSpans
is negative.- Since:
- 0.5
-
getNumRunningSpans
public abstract int getNumRunningSpans()Returns the number of running spans.- Returns:
- the number of running spans.
- Since:
- 0.5
-