nipwaayoni / elastic-apm-php-agent

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

Implement transaction sampling rate #22

Closed dstepe closed 4 years ago

dstepe commented 4 years ago

Reported here:

https://github.com/philkra/elastic-apm-php-agent/issues/117

Original:

There doesn't seem to be a way to set transaction sampling rate like you can with the official agents (e.g., https://github.com/elastic/apm-agent-python/blob/master/docs/configuration.asciidoc#transaction_sample_rate). Something similar to this would be rather useful for high-volume services.

Are there any plans of adding support for this? The only way I've found to influence the agent currently is the active key in the configuration, but that would mean errors won't get submitted either which would be suboptimal.