---
title: db.executed
description: A Laravel database query. SQL literals are replaced with ?.
url: https://docs.honeybadger.io/insights/event-types/laravel/db.executed/
---

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

Source **Database** Category **Database** Fields **5** [honeybadger-laravel](https://docs.honeybadger.io/lib/php/integration/laravel/)

## Fields

| 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

```json
{
  "event_type": "db.executed",
  "connectionName": "mysql",
  "sql": "select * from `users` where `id` = ? limit ?",
  "duration": 2340,
  "requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
