Skip to content

Automatic instrumentation

View Markdown

If you’re using Laravel or Lumen, Honeybadger provides automatic instrumentation to capture events from your apps. By default, we’ll record:

See the Laravel event reference for every event the package emits, with field schemas and types.

You can customise this with the events option in your config/honeybadger.php:

'events' => [
'enabled' => true,
'automatic' => [
Events\DatabaseQueryExecuted::class,
Events\DatabaseTransactionStarted::class,
Events\DatabaseTransactionCommitted::class,
Events\DatabaseTransactionRolledBack::class,
Events\CacheHit::class,
Events\CacheMiss::class,
Events\JobQueued::class,
Events\MailSending::class,
Events\MailSent::class,
Events\MessageLogged::class,
Events\NotificationSending::class,
Events\NotificationSent::class,
Events\NotificationFailed::class,
Events\RedisCommandExecuted::class,
Events\RouteMatched::class,
Events\ViewRendered::class,
],
],

The events.automatic key contains the list of the events Honeybadger tracks by default. You can disable a specific event by removing or commenting out the appropriate line.

If some events are noisy or you’d like to reduce quota consumption:

Automatic instrumentation covers the framework events the package knows about. To send your own application events, see Sending custom events.