ThresholdLoggingTracer
class ThresholdLoggingTracer implements RequestTracer (View source)
This implements a basic default tracer which keeps track of operations which falls outside a specified threshold. Note that to reduce the performance impact of using this tracer, this class is not actually used by the SDK, and simply acts as a placeholder which triggers a native implementation to be used instead.
Methods
Specifies how often aggregated trace information should be logged, specified in microseconds.
Specifies the threshold for when a kv request should be included in the aggregated metrics, specified in microseconds.
Specifies the threshold for when a query request should be included in the aggregated metrics, specified in microseconds.
Specifies the threshold for when a views request should be included in the aggregated metrics, specified in microseconds.
Specifies the threshold for when a search request should be included in the aggregated metrics, specified in microseconds.
Specifies the threshold for when an analytics request should be included in the aggregated metrics, specified in microseconds.
Specifies the number of entries which should be kept between each logging interval.
Details
requestSpan(string $name, RequestSpan $parent = null)
Creates a new request span.
emitInterval(int $duration)
Specifies how often aggregated trace information should be logged, specified in microseconds.
kvThreshold(int $duration)
Specifies the threshold for when a kv request should be included in the aggregated metrics, specified in microseconds.
queryThreshold(int $duration)
Specifies the threshold for when a query request should be included in the aggregated metrics, specified in microseconds.
viewsThreshold(int $duration)
Specifies the threshold for when a views request should be included in the aggregated metrics, specified in microseconds.
searchThreshold(int $duration)
Specifies the threshold for when a search request should be included in the aggregated metrics, specified in microseconds.
analyticsThreshold(int $duration)
Specifies the threshold for when an analytics request should be included in the aggregated metrics, specified in microseconds.
sampleSize(int $size)
Specifies the number of entries which should be kept between each logging interval.