Skip to content

Commit

Permalink
updated sentry package
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 23, 2023
1 parent 3d9a563 commit 26f6a59
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 27 deletions.
53 changes: 26 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/sentry.php
Expand Up @@ -29,6 +29,12 @@
// @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#send-default-pii
'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', true),

// @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#ignore-exceptions
'ignore_exceptions' => explode(',', env('SENTRY_IGNORE_EXCEPTIONS', '')),

// @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#ignore-transactions
'ignore_transactions' => explode(',', env('SENTRY_IGNORE_TRANSACTIONS', '')),

'before_send' => [env('SENTRY_BEFORE_SEND_CLASS', 'App\\Exceptions\\Trackers\\Sentry'), 'beforeSend'],

'traces_sampler' => [env('SENTRY_TRACES_SAMPLER_CLASS', 'App\\Exceptions\\Trackers\\Sentry'), 'tracesSampler'],
Expand Down Expand Up @@ -69,6 +75,9 @@
// Capture SQL queries as spans
'sql_queries' => env('SENTRY_TRACE_SQL_QUERIES_ENABLED', true),

// Capture SQL query bindings (parameters) in SQL query spans
'sql_bindings' => env('SENTRY_TRACE_SQL_BINDINGS_ENABLED', true),

// Capture where the SQL query originated from on the SQL query spans
'sql_origin' => env('SENTRY_TRACE_SQL_ORIGIN_ENABLED', true),

Expand Down

0 comments on commit 26f6a59

Please sign in to comment.