humanmade / aws-xray

HM Platform AWS X-Ray Integration
23 stars 4 forks source link

Send end trace on early shutdown #60

Closed joehoyle closed 4 years ago

joehoyle commented 4 years ago

Currently if the script execution ends before the WordPress shutdown handler has been set up, we don't sent the end trace. This is a problem because Batcache (or any advanced-cache.php) HIT will be before the shutdown handler for WordPress has been set up.

We have to add our own shutdown handler in all cases, and only use it where appropriate.