Configure head-based samplingedit

There are three ways to adjust the head-based sampling rate of your APM agents:

Dynamic configurationedit

The transaction sample rate can be changed dynamically (no redeployment necessary) on a per-service and per-environment basis with APM agent Configuration in Kibana.

Kibana API configurationedit

APM agent configuration exposes an API that can be used to programmatically change your agents' sampling rate. An example is provided in the Agent configuration API reference.

APM agent configurationedit

Each agent provides a configuration value used to set the transaction sample rate. See the relevant agent’s documentation for more details: