@ThreadSafe public final class InProcessSampledSpanStoreImpl extends SampledSpanStoreImpl
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| Modifier and Type | Method and Description |
|---|---|
void |
considerForSampling(RecordEventsSpanImpl span)
Considers to save the given spans to the stored samples.
|
boolean |
getEnabled()
Returns
true if the SampledSpanStore is enabled. |
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) |
Set<String> |
getRegisteredSpanNamesForCollection() |
io.opencensus.trace.export.SampledSpanStore.Summary |
getSummary() |
void |
registerSpanNamesForCollection(Collection<String> spanNames) |
protected void |
shutdown() |
void |
unregisterSpanNamesForCollection(Collection<String> spanNames) |
getNoopSampledSpanStoreImplpublic io.opencensus.trace.export.SampledSpanStore.Summary getSummary()
getSummary in class io.opencensus.trace.export.SampledSpanStorepublic void considerForSampling(RecordEventsSpanImpl span)
SampledSpanStoreImplconsiderForSampling in class SampledSpanStoreImplspan - the span to be consider for storing into the store buckets.public boolean getEnabled()
SampledSpanStoreImpltrue if the SampledSpanStore is enabled.getEnabled in class SampledSpanStoreImpltrue if the SampledSpanStore is enabled.public void registerSpanNamesForCollection(Collection<String> spanNames)
registerSpanNamesForCollection in class io.opencensus.trace.export.SampledSpanStoreprotected void shutdown()
shutdown in class SampledSpanStoreImplpublic void unregisterSpanNamesForCollection(Collection<String> spanNames)
unregisterSpanNamesForCollection in class io.opencensus.trace.export.SampledSpanStorepublic Set<String> getRegisteredSpanNamesForCollection()
getRegisteredSpanNamesForCollection 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