ThresholdLoggingTracer
in package
implements
RequestTracer
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.
Interfaces, Classes and Traits
- RequestTracer
- Represents a tracer capable of creating trace spans.
Table of Contents
- analyticsThreshold() : mixed
- Specifies the threshold for when an analytics request should be included in the aggregated metrics, specified in microseconds.
- emitInterval() : mixed
- Specifies how often aggregated trace information should be logged, specified in microseconds.
- kvThreshold() : mixed
- Specifies the threshold for when a kv request should be included in the aggregated metrics, specified in microseconds.
- queryThreshold() : mixed
- Specifies the threshold for when a query request should be included in the aggregated metrics, specified in microseconds.
- requestSpan() : mixed
- Creates a new request span.
- sampleSize() : mixed
- Specifies the number of entries which should be kept between each logging interval.
- searchThreshold() : mixed
- Specifies the threshold for when a search request should be included in the aggregated metrics, specified in microseconds.
- viewsThreshold() : mixed
- Specifies the threshold for when a views request should be included in the aggregated metrics, specified in microseconds.
Methods
analyticsThreshold()
Specifies the threshold for when an analytics request should be included in the aggregated metrics, specified in microseconds.
public
analyticsThreshold(int $duration) : mixed
Parameters
- $duration : int
Return values
mixed —emitInterval()
Specifies how often aggregated trace information should be logged, specified in microseconds.
public
emitInterval(int $duration) : mixed
Parameters
- $duration : int
Return values
mixed —kvThreshold()
Specifies the threshold for when a kv request should be included in the aggregated metrics, specified in microseconds.
public
kvThreshold(int $duration) : mixed
Parameters
- $duration : int
Return values
mixed —queryThreshold()
Specifies the threshold for when a query request should be included in the aggregated metrics, specified in microseconds.
public
queryThreshold(int $duration) : mixed
Parameters
- $duration : int
Return values
mixed —requestSpan()
Creates a new request span.
public
requestSpan(string $name[, RequestSpan $parent = null ]) : mixed
Parameters
- $name : string
-
The name of the span.
- $parent : RequestSpan = null
-
The parent of the span, if one exists.
Return values
mixed —sampleSize()
Specifies the number of entries which should be kept between each logging interval.
public
sampleSize(int $size) : mixed
Parameters
- $size : int
Return values
mixed —searchThreshold()
Specifies the threshold for when a search request should be included in the aggregated metrics, specified in microseconds.
public
searchThreshold(int $duration) : mixed
Parameters
- $duration : int
Return values
mixed —viewsThreshold()
Specifies the threshold for when a views request should be included in the aggregated metrics, specified in microseconds.
public
viewsThreshold(int $duration) : mixed
Parameters
- $duration : int