Custom Segments
Monitor custom code blocks inside your application.
Add Segments (short form)
$inspector->addSegment(function () {
// Code block that you want add to the transaction timeline.
// DB queries, http calls, etc.
}, 'type', 'label');
Get return
Add Segments (extended code)

Segments tips and tricks
Access the Inspector instance
Last updated