@ThreadSafe public final class SampledSpanStoreImpl extends io.opencensus.trace.export.SampledSpanStore
SampledSpanStore.io.opencensus.trace.export.SampledSpanStore.ErrorFilter, io.opencensus.trace.export.SampledSpanStore.LatencyBucketBoundaries, io.opencensus.trace.export.SampledSpanStore.LatencyFilter, io.opencensus.trace.export.SampledSpanStore.PerSpanNameSummary, io.opencensus.trace.export.SampledSpanStore.Summary| Constructor and Description |
|---|
SampledSpanStoreImpl()
Constructs a new
SampledSpanStoreImpl. |
| Modifier and Type | Method and Description |
|---|---|
void |
considerForSampling(SpanImpl span)
Considers to save the given spans to the stored samples.
|
Collection<io.opencensus.trace.export.SpanData> |
getErrorSampledSpans(io.opencensus.trace.export.SampledSpanStore.ErrorFilter filter) |
Collection<io.opencensus.trace.export.SpanData> |
getLatencySampledSpans(io.opencensus.trace.export.SampledSpanStore.LatencyFilter filter) |
io.opencensus.trace.export.SampledSpanStore.Summary |
getSummary() |
void |
registerSpanNamesForCollection(Collection<String> spanNames) |
void |
unregisterSpanNamesForCollection(Collection<String> spanNames) |
public SampledSpanStoreImpl()
SampledSpanStoreImpl.public io.opencensus.trace.export.SampledSpanStore.Summary getSummary()
getSummary in class io.opencensus.trace.export.SampledSpanStorepublic void considerForSampling(SpanImpl span)
span - the span to be consider for storing into the store buckets.public void registerSpanNamesForCollection(Collection<String> spanNames)
registerSpanNamesForCollection in class io.opencensus.trace.export.SampledSpanStorepublic void unregisterSpanNamesForCollection(Collection<String> spanNames)
unregisterSpanNamesForCollection in class io.opencensus.trace.export.SampledSpanStorepublic Collection<io.opencensus.trace.export.SpanData> getErrorSampledSpans(io.opencensus.trace.export.SampledSpanStore.ErrorFilter filter)
getErrorSampledSpans in class io.opencensus.trace.export.SampledSpanStorepublic Collection<io.opencensus.trace.export.SpanData> getLatencySampledSpans(io.opencensus.trace.export.SampledSpanStore.LatencyFilter filter)
getLatencySampledSpans in class io.opencensus.trace.export.SampledSpanStore