type
is used as label.mysql
but each query has its own custom label that simply is an extract of the sql code executed for a better timeline consultation.csv-export
as type parameter and use the filename
as label for each statement of this type.addSegment()
method.inspector.addSegment()
return a Promise. If you want wait the execution of the callback you need to use async/await construct or then/catch.