Custom Segments
Monitor custom code blocks inside your application.
Thanks to Inspector you are able to put everything you want in the transactions timeline getting a real-time feedback about the execution of a code block inside your application.
By default Inspector will report many type of statements, but you are free to "wrap" some parts of your code that you consider relevant to create a more complete picture of what statements are impacting more in any execution cycle.
Here is an example of how you'll be able to explore your custom segments in your dashboard thanks to the timeline:
A new segment in the timeline
Access the code examples below based on your preferred platform.
Platform
Custom Segments Documentation
PHP (PHP, Laravel, Symfony)
NodeJs (nodejs, express, fastify)
Last modified 2mo ago
Copy link