Skip to content

Commit 79afd6b

Browse files
committed
Added a default list of in_app_excludes
1 parent 8f7ecb8 commit 79afd6b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Plugin/GlobalExceptionCatcher.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,19 @@ public function prepareConfig(): DataObject
194194
$config->unsetTracesSampleRate(null);
195195
}
196196

197+
$config->setInAppExclude([
198+
...($config->getInAppExclude() ?? []),
199+
'cron.php',
200+
'get.php',
201+
'health_check.php',
202+
'index.php',
203+
'static.php',
204+
'bin/magento',
205+
'app/autoload.php',
206+
'app/bootstrap.php',
207+
'app/functions.php',
208+
]);
209+
197210
$this->eventManager->dispatch('sentry_before_init', [
198211
'config' => $config,
199212
]);

0 commit comments

Comments
 (0)