Skip to content

Commit

Permalink
feat: Remove body from event
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops committed Nov 29, 2023
1 parent 8dd9f43 commit 1192b88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
ROOT . DS . 'vendor',
],
'attach_stacktrace' => true,
'before_send_transaction' => function (\Sentry\Event $event): ?\Sentry\Event {
$request = $event->getRequest();
unset($request["data"]);
unset($request["query_string"]);
$event->setRequest($request);
return $event;
},
]);

/*
Expand Down

0 comments on commit 1192b88

Please sign in to comment.