Transaction_sample_rate and error reporting behaviour

We have recently enabled transaction_sample_rate and are observing that our labels and context are also no longer coming through for the unsampled transactions. We had missed the section of the documentation that actually states this, oops.

However we think there is a problem here regarding sampling being applied to error reporting. This could be a case of unrealistic expectations and you can hopefully help us resolve this.

We would expect labels/context at least to be attached 100% of the time to errors. This data can be valuable in figuring out what caused the problem. It would be useful if spans were reported 100% of the time for errors as well but I'm unsure of if at the point the error occurs then the span data has already been discarded.

Can you confirm that dropping labels/context is expected behaviour?
Is there another way for us to record this data for unsampled transactions?

Kibana version: 7.12.1

Elasticsearch version: 7.12

APM Server version: 7.12.1

APM Agent language and version: PHP/1.3

Browser version: N/A

Original install method (e.g. download page, yum, deb, from source, etc.) and version: deb

Fresh install or upgraded from other version? Fresh install

Is there anything special in your setup? No

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.