Class SampledSpanStore.PerSpanNameSummary
java.lang.Object
io.opencensus.trace.export.SampledSpanStore.PerSpanNameSummary
- Direct Known Subclasses:
AutoValue_SampledSpanStore_PerSpanNameSummary
- Enclosing class:
SampledSpanStore
Summary of all available data for a span name.
- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Map<SampledSpanStore.LatencyBucketBoundaries, Integer> numbersOfLatencySampledSpans, Map<Status.CanonicalCode, Integer> numbersOfErrorSampledSpans) Returns a new instance ofPerSpanNameSummary.abstract Map<Status.CanonicalCode, Integer> Returns the number of sampled spans in all the error buckets.abstract Map<SampledSpanStore.LatencyBucketBoundaries, Integer> Returns the number of sampled spans in all the latency buckets.
-
Constructor Details
-
PerSpanNameSummary
PerSpanNameSummary()
-
-
Method Details
-
create
public static SampledSpanStore.PerSpanNameSummary create(Map<SampledSpanStore.LatencyBucketBoundaries, Integer> numbersOfLatencySampledSpans, Map<Status.CanonicalCode, Integer> numbersOfErrorSampledSpans) Returns a new instance ofPerSpanNameSummary.- Parameters:
numbersOfLatencySampledSpans- the summary for the latency buckets.numbersOfErrorSampledSpans- the summary for the error buckets.- Returns:
- a new instance of
PerSpanNameSummary. - Throws:
NullPointerException- ifnumbersOfLatencySampledSpansornumbersOfErrorSampledSpansarenull.- Since:
- 0.5
-
getNumbersOfLatencySampledSpans
public abstract Map<SampledSpanStore.LatencyBucketBoundaries, Integer> getNumbersOfLatencySampledSpans()Returns the number of sampled spans in all the latency buckets.Data available only for span names registered using
SampledSpanStore.registerSpanNamesForCollection(Collection).- Returns:
- the number of sampled spans in all the latency buckets.
- Since:
- 0.5
-
getNumbersOfErrorSampledSpans
Returns the number of sampled spans in all the error buckets.Data available only for span names registered using
SampledSpanStore.registerSpanNamesForCollection(Collection).- Returns:
- the number of sampled spans in all the error buckets.
- Since:
- 0.5
-