Trace sampling rate
By default, when you enable Application Signals X-Ray centralized sampling is enabled
using the default sampling rate settings of reservoir=1/s
and fixed_rate=5%
.
The environment variables for the Amazon Distro for OpenTelemetry (ADOT) SDK agent as set as follows.
Environment variable | Value | Note |
---|---|---|
|
|
|
|
|
Endpoint of the CloudWatch agent |
For information about changing the sampling configuration, see the following:
To change X-Ray sampling, see Configure sampling rules
To change ADOT sampling, see Configuring the OpenTelemetry Collector for X-Ray remote sampling
If you want to disable X-Ray centralized sampling and use local sampling instead, set the following values for the ADOT SDK Java agent as below. The following example sets the sampling rate at 5%.
Environment variable | Value |
---|---|
|
|
|
|
For information about more advanced sampling settings, see
OTEL_TRACES_SAMPLER