Skip to content

Laravel event reference

View Markdown
Every event the Honeybadger Laravel package sends to Insights when events are enabled: handled requests, database queries and transactions, cache hits and misses, queued and processed jobs, mail, notifications, Redis commands, route matches, and view renders. Each entry lists the event's fields with their types, and links to its raw JSON Schema.
18 events emitted by honeybadger-laravel.

Blade

view.rendered

A Blade view was rendered.

FieldTypeDescription
event_typestringAllowed value: view.rendered.
namestringView name, e.g. "users.show".
pathstringFilesystem path to the view file.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "view.rendered",
"name": "users.show",
"path": "/var/www/html/resources/views/users/show.blade.php",
"duration": 3500,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Cache

cache.hit

A cache key was found (hit).

FieldTypeDescription
event_typestringAllowed value: cache.hit.
keystringCache key that was hit.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "cache.hit",
"key": "users:123",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

cache.miss

A cache key was not found (miss).

FieldTypeDescription
event_typestringAllowed value: cache.miss.
keystringCache key that was missed.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "cache.miss",
"key": "users:123",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Database

db.executed

A Laravel database query. SQL literals are replaced with ?.

FieldTypeDescription
event_typestringAllowed value: db.executed.
connectionNamestringDatabase connection name, e.g. "mysql", "pgsql".
sqlstringSanitized SQL with literals replaced by ?.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "db.executed",
"connectionName": "mysql",
"sql": "select * from `users` where `id` = ? limit ?",
"duration": 2340,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

db.transaction.committed

A database transaction was committed.

FieldTypeDescription
event_typestringAllowed value: db.transaction.committed.
connectionNamestringDatabase connection name.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "db.transaction.committed",
"connectionName": "mysql",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

db.transaction.rolledback

A database transaction was rolled back.

FieldTypeDescription
event_typestringAllowed value: db.transaction.rolledback.
connectionNamestringDatabase connection name.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "db.transaction.rolledback",
"connectionName": "mysql",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

db.transaction.started

A database transaction was started.

FieldTypeDescription
event_typestringAllowed value: db.transaction.started.
connectionNamestringDatabase connection name.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "db.transaction.started",
"connectionName": "mysql",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

HTTP client

response.received

Laravel's HTTP client received a response.

FieldTypeDescription
event_typestringAllowed value: response.received.
uristringURL of the outbound request.
statusCodeintegerHTTP response status code.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "response.received",
"uri": "https://api.example.com/v1/payments",
"statusCode": 200,
"duration": 87000,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Mail

mail.sending

A mail message is about to be sent.

FieldTypeDescription
event_typestringAllowed value: mail.sending.
tostring | nullComma-separated recipient addresses. Null when none are set.
subjectstring | nullEmail subject. Null when not set.
ccstring | nullComma-separated CC addresses.
bccstring | nullComma-separated BCC addresses.
replyTostring | nullComma-separated reply-to addresses.
queuestring | nullQueue name if the mail was queued.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "mail.sending",
"to": "user@example.com",
"subject": "Welcome to Example App",
"cc": "manager@example.com",
"bcc": "audit@example.com",
"replyTo": "support@example.com",
"queue": "default",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

mail.sent

A mail message was sent.

FieldTypeDescription
event_typestringAllowed value: mail.sent.
tostring | nullComma-separated recipient addresses. Null when none are set.
subjectstring | nullEmail subject. Null when not set.
ccstring | nullComma-separated CC addresses.
bccstring | nullComma-separated BCC addresses.
replyTostring | nullComma-separated reply-to addresses.
queuestring | nullQueue name if the mail was queued.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "mail.sent",
"to": "user@example.com",
"subject": "Welcome to Example App",
"cc": "manager@example.com",
"bcc": "audit@example.com",
"replyTo": "support@example.com",
"queue": "default",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Notifications

notification.failed

A notification failed to send.

FieldTypeDescription
event_typestringAllowed value: notification.failed.
notificationstringNotification class name.
channelstringChannel that failed.
notifiablestringNotifiable class name.
queuestring | nullQueue name if queued.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "notification.failed",
"notification": "App\\Notifications\\InvoicePaid",
"channel": "mail",
"notifiable": "App\\Models\\User",
"queue": "default",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

notification.sending

A notification is about to be sent.

FieldTypeDescription
event_typestringAllowed value: notification.sending.
notificationstringNotification class name.
channelstringChannel the notification is sent through, e.g. "mail", "slack".
notifiablestringNotifiable class name (the recipient model).
queuestring | nullQueue name if the notification was queued.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "notification.sending",
"notification": "App\\Notifications\\InvoicePaid",
"channel": "mail",
"notifiable": "App\\Models\\User",
"queue": "default",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

notification.sent

A notification was sent.

FieldTypeDescription
event_typestringAllowed value: notification.sent.
notificationstringNotification class name.
channelstringChannel used.
notifiablestringNotifiable class name.
queuestring | nullQueue name if queued.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "notification.sent",
"notification": "App\\Notifications\\InvoicePaid",
"channel": "mail",
"notifiable": "App\\Models\\User",
"queue": "default",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Queue

job.processed

A Laravel queue job finished processing.

FieldTypeDescription
event_typestringAllowed value: job.processed.
connectionNamestringQueue connection name, e.g. "redis", "database".
jobstringResolved job class name.
idstringJob ID.
attemptsintegerNumber of attempts made.
hasFailedbooleanWhether the job was marked as failed.
isReleasedbooleanWhether the job was released back to the queue.
isDeletedbooleanWhether the job was deleted from the queue.
maxTriesinteger | nullMaximum retry attempts allowed.
maxExceptionsinteger | nullMaximum exceptions before the job is failed.
timeoutinteger | nullJob timeout in seconds.
retryUntilinteger | nullTimestamp after which the job should not be retried.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "job.processed",
"connectionName": "redis",
"job": "App\\Jobs\\SendWelcomeEmail",
"id": "9c2e1f7a-3b4d-4e5f-8a6b-1c2d3e4f5a6b",
"attempts": 1,
"hasFailed": false,
"isReleased": false,
"isDeleted": true,
"maxTries": 3,
"maxExceptions": 3,
"timeout": 60,
"retryUntil": 1781272800,
"duration": 312000,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

job.queued

A Laravel job was pushed onto a queue. Requires Laravel 8.24+.

FieldTypeDescription
event_typestringAllowed value: job.queued.
connectionNamestringQueue connection name.
jobstringJob class name.
idstringJob ID.
queuestring | nullQueue name, if available.
delayinteger | nullDelay in seconds before the job becomes available.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "job.queued",
"connectionName": "redis",
"job": "App\\Jobs\\SendWelcomeEmail",
"id": "9c2e1f7a-3b4d-4e5f-8a6b-1c2d3e4f5a6b",
"queue": "default",
"delay": 30,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Redis

redis.executed

A Redis command was executed.

FieldTypeDescription
event_typestringAllowed value: redis.executed.
connectionNamestringRedis connection name.
commandstringFormatted Redis command with parameters.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "redis.executed",
"connectionName": "default",
"command": "get users:123",
"duration": 450,
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Request

request.handled

A Laravel controller handled an HTTP request.

FieldTypeDescription
event_typestringAllowed value: request.handled.
uristringFull request URL.
methodstringHTTP method, e.g. "GET", "POST".
statusCodeintegerHTTP response status code.
durationnumberDuration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds.
controllerstring | nullController class name. Null for closure routes or when no route was matched.
actionstring | nullController action method name. Null when no route was matched.
routeNamestring | nullName of the matched route. Null when the route is unnamed or no route was matched.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "request.handled",
"uri": "https://app.example.com/users/123",
"method": "GET",
"statusCode": 200,
"duration": 124000,
"controller": "App\\Http\\Controllers\\UserController",
"action": "show",
"routeName": "users.show",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}

Routing

route.matched

Laravel matched a route before running the controller.

FieldTypeDescription
event_typestringAllowed value: route.matched.
uristringRoute URI pattern, e.g. "users/{id}".
methodsstringComma-separated HTTP methods the route accepts.
handlerstringController@method string or closure class name.
namestring | nullNamed route, if defined.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.
Example
{
"event_type": "route.matched",
"uri": "users/{id}",
"methods": "GET,HEAD",
"handler": "App\\Http\\Controllers\\UserController@show",
"name": "users.show",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}