Skip to content

Commit a41ea13

Browse files
authored
Only load 5 most relevant traces
1 parent f4c1daa commit a41ea13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function addQuery($query, $bindings, $time, $connection)
139139

140140
if ($this->findSource) {
141141
try {
142-
$source = $this->findSource();
142+
$source = array_slice($this->findSource(), 0, 5);
143143
} catch (\Exception $e) {
144144
}
145145
}

0 commit comments

Comments
 (0)