nipwaayoni / elastic-apm-php-agent

PHP Agent for Elastic APM
Other
28 stars 15 forks source link

Implement transaction sampling rate #63

Closed dstepe closed 4 years ago

dstepe commented 4 years ago

This adds the option to set a transaction sample rate, consistent with other agents. A sampled transaction includes all context and child events. A non-sampled transaction is recorded, but does not contain context or child events.

The default transaction sample rate is 1.0 (100%) resulting in all transactions being sampled.

dstepe commented 4 years ago

@tsantos84 I'm going to merge this into the 7.5 dev branch so I keep some other things moving. Please feel free to take a look when you have a chance.