Skip to content

Commit

Permalink
fix(cherry-pick): invalid ? in db query segments
Browse files Browse the repository at this point in the history
Character `?`  will causing traces not to be sent.

cherry-pick from Napp#30
  • Loading branch information
evan361425 committed Apr 21, 2023
1 parent 63ba01c commit 6b67526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collectors/Backtracer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getCallerClass(array $backtrace): string
protected function parseTrace($index, array $trace)
{
if (isset($trace['class']) && !$this->isExcludedClass($trace['class'])) {
return $trace['class'] . ':' . ($trace['line'] ?? '?');
return $trace['class'] . ':' . ($trace['line'] ?? '');
}

return '';
Expand Down

0 comments on commit 6b67526

Please sign in to comment.