Skip to content

Commit

Permalink
Adds env support for sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Mar 1, 2023
1 parent 3032120 commit 8a0cfec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sentry/publish/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
// capture release as git sha
// 'release' => trim(exec('git --git-dir ' . (BASE_PATH . '/.git') . ' log --pretty="%h" -n1 HEAD')),

'environment' => env('APP_ENV'),
'environment' => env('APP_ENV', 'production'),

// @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
'send_default_pii' => false,
'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', false),

'breadcrumbs' => [
'sql_queries' => true,
'sql_bindings' => true,
'sql_transaction' => true,
'redis' => true,
'guzzle' => true,
'logs' => true,
'sql_queries' => env('SENTRY_BREADCRUMBS_SQL_QUERIES', true),
'sql_bindings' => env('SENTRY_BREADCRUMBS_SQL_BINDINGS', true),
'sql_transaction' => env('SENTRY_BREADCRUMBS_SQL_TRANSACTION', true),
'redis' => env('SENTRY_BREADCRUMBS_REDIS', true),
'guzzle' => env('SENTRY_BREADCRUMBS_GUZZLE', true),
'logs' => env('SENTRY_BREADCRUMBS_LOGS', true),
],

'integrations' => [],
Expand Down

0 comments on commit 8a0cfec

Please sign in to comment.