Skip to content

Configuration ​

Main configuration file:

text
config/error-tracker.php

Important options include:

  • database.connection
  • route.path
  • dashboard.app_home_url
  • capture.sample_rate
  • fingerprint.include_environment
  • notifications.channels
  • notifications.cooldown_minutes
  • notifications.max_per_issue_per_hour
  • error_page.enabled
  • feedback.enabled
  • retention.events_days
  • auto_resolve.enabled
  • auto_resolve.after_days
  • stacktrace.smart_grouping
  • stacktrace.project_paths
  • stacktrace.project_namespaces
  • stacktrace.non_project_paths
  • stacktrace.path_display
  • stacktrace.store_absolute_paths
  • stacktrace.source_context
  • stacktrace.store_arguments
  • integrations.issue_trackers.github

Shared Database / Multi-App Setup ​

The package can optionally use a dedicated database connection:

php
'database' => [
    'connection' => env('ERROR_TRACKER_DB_CONNECTION'),
],

When this is configured, multiple applications may write to the same tracker storage.

In that setup, keeping environment visible in the dashboard and optionally including it in the fingerprint becomes more useful.

As of v1.1.2, the issue, event, and hourly trend for a capture are committed in a single transaction on the configured tracker connection. If database.connection is empty, the transaction runs on Laravel's default database connection.

Request URLs and exception messages ​

Starting in v1.1.2, captured request URLs and feedback page URLs omit the query string by default. Events still include the HTTP method, request path, and named route when available. The tracker also strips query strings from URLs embedded in exception messages, captured headers, and context.

Text in new event messages, issue titles, and issue message samples masks values assigned to keys in redaction.request_fields and redaction.headers. The same settings continue to mask sensitive keys in structured context and headers. Exception objects in context are represented by class name. GitHub issue bodies and Slack issue titles also apply message redaction when sharing stored text.

Redaction applies at capture or sharing time. Upgrading does not clean historical records, which may still contain sensitive values in the dashboard. Existing issue fingerprints are preserved.

GitHub Issue Integration ​

GitHub issue linking is disabled by default.

Environment variableConfig keyDefault
ERROR_TRACKER_GITHUB_ENABLEDintegrations.issue_trackers.github.enabledfalse
ERROR_TRACKER_GITHUB_TOKENintegrations.issue_trackers.github.tokenempty
ERROR_TRACKER_GITHUB_REPOSITORYintegrations.issue_trackers.github.repositoryempty
ERROR_TRACKER_GITHUB_LABELSintegrations.issue_trackers.github.labelsbug,error-tracker
ERROR_TRACKER_GITHUB_ASSIGNEESintegrations.issue_trackers.github.assigneesempty
ERROR_TRACKER_GITHUB_TITLE_TEMPLATEintegrations.issue_trackers.github.title_template[{environment}] {exception_class} in {location}
ERROR_TRACKER_GITHUB_INCLUDE_STACK_TRACEintegrations.issue_trackers.github.include_stack_tracetrue
ERROR_TRACKER_GITHUB_MAX_STACK_FRAMESintegrations.issue_trackers.github.max_stack_frames15
ERROR_TRACKER_GITHUB_INCLUDE_CONTEXTintegrations.issue_trackers.github.include_contextfalse
ERROR_TRACKER_GITHUB_INCLUDE_SOURCE_CONTEXTintegrations.issue_trackers.github.include_source_contextfalse

ERROR_TRACKER_GITHUB_TOKEN is displayed only as configured or not configured in diagnostics.