function hook_raven_options_alter in Raven: Sentry Integration 3.x
Same name and namespace in other branches
- 8.2 raven.api.php \hook_raven_options_alter()
Alter Sentry PHP client options.
Parameters
array $options: The options to be passed to \Sentry\init().
See also
\Drupal\raven\Logger\Raven::log()
1 invocation of hook_raven_options_alter()
- Raven::getClient in src/
Logger/ Raven.php - Returns existing or new Sentry client, or NULL if it could not be created.
File
- ./
raven.api.php, line 76 - Hooks provided by the Raven module.
Code
function hook_raven_options_alter(array &$options) {
$options['environment'] = getenv('SENTRY_CURRENT_ENV');
}