atatus_add_custom_layer() function can be used for your custom functions. For instance, if you want to know the response time of the transactions you have written, you can use this function.
PHP Agent API
Add custom layer in PHP APM
A simple documentation on atatus_add_custom_layer() functionality and its uses with examples. Learn before start monitoring your php app for better understanding.