Interface SamplingStrategy
-
- All Known Implementing Classes:
AllSamplingStrategy
,CentralizedSamplingStrategy
,DefaultSamplingStrategy
,LocalizedSamplingStrategy
,NoSamplingStrategy
public interface SamplingStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
isForcedSamplingSupported()
Returns whether or not this sampling strategy supports 'forced sampling'.SamplingResponse
shouldTrace(SamplingRequest sampleRequest)
default void
shutdown()
Shutdown additional resources created by advanced sampling strategies.
-
-
-
Method Detail
-
shouldTrace
SamplingResponse shouldTrace(SamplingRequest sampleRequest)
-
isForcedSamplingSupported
boolean isForcedSamplingSupported()
Returns whether or not this sampling strategy supports 'forced sampling'. Forced sampling allows a segment's initial non-sampled decision to be later overriden to sampled. Supporting this feature requires that all segments, sampled or otherwise, be kept in memory for the duration of their existence. Not supporting this feature saves memory and computational capacity.- Returns:
- whether or not forced sampling is supported
-
shutdown
default void shutdown()
Shutdown additional resources created by advanced sampling strategies.
-
-