log which method was used to wrap db->execute
This commit is contained in:
parent
3c6b09110a
commit
1e1ede7db6
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class Database
|
|||
{
|
||||
global $_tracer;
|
||||
$dur = microtime(true) - $start;
|
||||
$_tracer->complete($start * 1000000, $dur * 1000000, "DB Query", ["query"=>$query, "args"=>$args]);
|
||||
$_tracer->complete($start * 1000000, $dur * 1000000, "DB Query", ["query"=>$query, "args"=>$args, "method"=>$method]);
|
||||
$this->query_count++;
|
||||
$this->dbtime += $dur;
|
||||
}
|
||||
|
|
Reference in a new issue