db.executed
A Laravel database query. SQL literals are replaced with ?.
Fields
5| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: db.executed. |
connectionName | string | Database connection name, e.g. "mysql", "pgsql". |
sql | string | Sanitized SQL with literals replaced by ?. |
duration | number | Duration in microseconds. The client sends a value with an ms suffix, such as "5.123ms". The ingestion pipeline converts it to microseconds. |
requestId | string | Correlation 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"}