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

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.

Details

requestSpan(string $name, RequestSpan $parent = null)

Creates a new request span.

Parameters

string $name

The name of the span.

RequestSpan $parent

The parent of the span, if one exists.

emitInterval(int $duration)

Specifies how often aggregated trace information should be logged, specified in microseconds.

Parameters

int $duration

kvThreshold(int $duration)

Specifies the threshold for when a kv request should be included in the aggregated metrics, specified in microseconds.

Parameters

int $duration

queryThreshold(int $duration)

Specifies the threshold for when a query request should be included in the aggregated metrics, specified in microseconds.

Parameters

int $duration

viewsThreshold(int $duration)

Specifies the threshold for when a views request should be included in the aggregated metrics, specified in microseconds.

Parameters

int $duration

searchThreshold(int $duration)

Specifies the threshold for when a search request should be included in the aggregated metrics, specified in microseconds.

Parameters

int $duration

analyticsThreshold(int $duration)

Specifies the threshold for when an analytics request should be included in the aggregated metrics, specified in microseconds.

Parameters

int $duration

sampleSize(int $size)

Specifies the number of entries which should be kept between each logging interval.

Parameters

int $size