Skip to content

db.executed

View Markdown

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

Source Database Category Database Fields 5 honeybadger-laravel

Fields

5
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"
}