海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7 KiB

  1. <?php
  2. return [
  3. 'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
  4. // capture release as git sha
  5. // 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
  6. // When left empty or `null` the Laravel environment will be used
  7. 'environment' => env('SENTRY_ENVIRONMENT', env('APP_ENV')),
  8. 'breadcrumbs' => [
  9. // Capture Laravel logs in breadcrumbs
  10. 'logs' => true,
  11. // Capture SQL queries in breadcrumbs
  12. 'sql_queries' => true,
  13. // Capture bindings on SQL queries logged in breadcrumbs
  14. 'sql_bindings' => true,
  15. // Capture queue job information in breadcrumbs
  16. 'queue_info' => true,
  17. // Capture command information in breadcrumbs
  18. 'command_info' => true,
  19. ],
  20. 'tracing' => [
  21. // Trace queue jobs as their own transactions
  22. 'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false),
  23. // Capture queue jobs as spans when executed on the sync driver
  24. 'queue_jobs' => true,
  25. // Capture SQL queries as spans
  26. 'sql_queries' => true,
  27. // Try to find out where the SQL query originated from and add it to the query spans
  28. 'sql_origin' => true,
  29. // Capture views as spans
  30. 'views' => true,
  31. // Indicates if the tracing integrations supplied by Sentry should be loaded
  32. 'default_integrations' => true,
  33. ],
  34. // @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
  35. 'send_default_pii' => false,
  36. 'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),
  37. 'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),
  38. ];