mysqlbut each query has its own custom label that simply is an extract of the sql code.
mysqlas type parameter and use the
specific query stringor
task nameas label for each statements of this type.
startSegment()method on the Inspector instance to manually control the monitoring of a code block:
try/catch/finallyto be sure that your code block is monitored in a consistent way.
addSegment()that implements this strategy for you as seen above:
start()method, and the duration in the
end()method, as shown in the example below:
addSegment()method. Check it out on their specific documetation: