@Immutable public abstract static class SampledSpanStore.PerSpanNameSummary extends Object
Modifier and Type | Method and Description |
---|---|
static SampledSpanStore.PerSpanNameSummary |
create(Map<SampledSpanStore.LatencyBucketBoundaries,Integer> numbersOfLatencySampledSpans,
Map<Status.CanonicalCode,Integer> numbersOfErrorSampledSpans)
Returns a new instance of
PerSpanNameSummary . |
abstract Map<Status.CanonicalCode,Integer> |
getNumbersOfErrorSampledSpans()
Returns the number of sampled spans in all the error buckets.
|
abstract Map<SampledSpanStore.LatencyBucketBoundaries,Integer> |
getNumbersOfLatencySampledSpans()
Returns the number of sampled spans in all the latency buckets.
|
public static SampledSpanStore.PerSpanNameSummary create(Map<SampledSpanStore.LatencyBucketBoundaries,Integer> numbersOfLatencySampledSpans, Map<Status.CanonicalCode,Integer> numbersOfErrorSampledSpans)
PerSpanNameSummary
.numbersOfLatencySampledSpans
- the summary for the latency buckets.numbersOfErrorSampledSpans
- the summary for the error buckets.PerSpanNameSummary
.NullPointerException
- if numbersOfLatencySampledSpans
or numbersOfErrorSampledSpans
are null
.public abstract Map<SampledSpanStore.LatencyBucketBoundaries,Integer> getNumbersOfLatencySampledSpans()
Data available only for span names registered using SampledSpanStore.registerSpanNamesForCollection(Collection)
.
public abstract Map<Status.CanonicalCode,Integer> getNumbersOfErrorSampledSpans()
Data available only for span names registered using SampledSpanStore.registerSpanNamesForCollection(Collection)
.