[Elastic APM] transaction(xxx, xxx, custom) was discarded! The page was hidden during the transaction!

Hi,
We are trying to capture a long running custom transaction where the user might be inactive for a while, switch tabs/windows etc. We could not see these logs on kibana. so we turned on the debug log level and in such cases we can see that the transaction gets discarded with the message '[Elastic APM] transaction(xxx, xxx, custom) was discarded! The page was hidden during the transaction!'. How we can we disable this? Is there a config to control this behaviour?
We are using @elastic/apm-rum-angular: 2.0.0 and use chrome.
Thank you.

Regards,
Sibi

1 Like

received a response on github
'This is the intended behaviour and there is no config to disable this functionality. The reason being When the tab is backgrounded, timers becomes throttled by the browser and the performance metrics will be incorrect
and would not be the accurate representation of what happens on the page. Page Visibility API - Web APIs | MDN'

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