Configures the Request Tracing service.
Synopsis
asadmin [asadmin-options] set-requesttracing-configuration [--help]
[--enabled={false|true}]
[--dynamic={false|true}]
[--sampleRate] rate
[--adaptiveSamplingEnabled={false|true}]
[--adaptiveSamplingTargetCount] targetCount
[--adaptiveSamplingTimeValue] value
[--adaptiveSamplingTimeUnit] timeUnit
[--applicationsOnlyEnabled={false|true}]
[--thresholdValue] value
[--thresholdUnit] timeUnit
[--sampleRateFirstEnabled={false|true}]
[--traceStoreSize] size
[--traceStoreTimeout] timeout
[--reservoirSamplingEnabled={false|true}]
[--historicTraceStoreEnabled={false|true}]
[--historicTraceStoreSize] size
[--historicTraceStoreTimeout] timeout
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadminhelp page. --help-?-
Displays the help text for the subcommand.
--enabled-
Defaults to
false. Enables or disables the Request Tracing service --dynamic-
Defaults to
false. When set totrue, applies the changes without a server restart.Otherwise, a restart is required.
--sampleRate-
The probability of a trace being sampled.
The rate must be a positive number between
0and1.0 --adaptiveSamplingEnabled-
Defaults to
false. Whether to use an adaptive sampling rate. --adaptiveSamplingTargetCount-
The target number of traces to sample per the configured time window.
Defaults to
6. --adaptiveSamplingTimeValue-
The period of time to attempt to hit the adaptive sample target count in.
Defaults to
1. --adaptiveSamplingTimeUnit-
The time unit for the
adaptiveSampleTimeValueoption.Defaults to
MINUTES. --applicationsOnlyEnabled-
Defaults to
true. Whether to exclusively sample traces related to applications. --thresholdValue-
Sets the number of time units which trigger the tracing of a request.
Only used if adaptiveSamplingEnabledis set tofalse. --thresholdUnit-
Sets the time unit to use for the threshold.
Only used if adaptiveSamplingEnabledis set tofalse. --sampleRateFirstEnabled-
Defaults to
true. Whether to perform the sampling check before or after the threshold calculation. --traceStoreSize-
Sets how many request traces will be stored.
Defaults to
20trace records. --traceStoreTimeout-
Sets how long before Request Tracing messages are removed.
This field is specified in the format
%d %h %m %swhere%is an integer. Any of the units can also be omitted.This option is ignored when reservoir sampling is enabled. --reservoirSamplingEnabled-
Defaults to
false. Whether to use reservoir sampling, or time based sampling. --historicTracestoreEnabled-
Defaults to
false. When present, enables storage of the slowest sampled historical request traces in a separate trace store. --historicTracestoreSize-
Sets how many request traces will be stored for historical purposes.
Defaults to
20trace records. --historicTracestoreTimeout-
Sets how long before Request Tracing messages are removed from the historical trace store.
This field is specified in the format
%d %h %m %swhere%is an integer. Any of the units can also be omitted.This option is ignored when reservoir sampling is enabled.
Examples
Example 1 Configure the Request Tracing Service Threshold and Historic Trace Storage
Enables the Request Tracing service with a 10 seconds threshold and to store the last 20 traces from 1 day, 2 hours and 3 minutes ago:
asadmin> set-requesttracing-configuration
--enabled=true
--thresholdValue=10
--thresholdUnit="SECONDS"
--dynamic=true
--historicTraceStoreEnabled=true
--historicTraceStoreSize=20
--historicTraceStoreTimeout='1d 2h 3m 30s'