Skip to content

Commit

Permalink
Merge pull request #104 from derhansen/main
Browse files Browse the repository at this point in the history
[TASK] Use TYPO3 HTTP configuration in sentry client
  • Loading branch information
christophlehmann authored Apr 22, 2024
2 parents b18468f + c1ee17e commit 5978be6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Service/SentryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public static function inititalize(): bool
'environment' => ConfigurationService::getEnvironment(),
'in_app_include' => [Environment::getExtensionsPath()],
'http_proxy' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy'] ?? null,
'http_ssl_verify_peer' => (bool)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'] ?? true),
'http_timeout' => (int)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['http_timeout'] ?? 5),
'http_connect_timeout' => (int)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['connect_timeout'] ?? 2),
'attach_stacktrace' => true,
'before_send' => function (Event $event): Event {
return SentryLogWriter::cleanupStacktrace($event);
Expand Down

0 comments on commit 5978be6

Please sign in to comment.