---
title: ash.query.stop
description: An Ash query span finished. Honeybadger records this when :query is included in trace_types.
url: https://docs.honeybadger.io/insights/event-types/elixir/ash.query.stop/
---

An Ash query span finished. Honeybadger records this when :query is included in trace\_types.

Source **Ash** Category **Database** Fields **11** [honeybadger-elixir](https://docs.honeybadger.io/lib/elixir/)

## Fields

| Field            | Type   | Description                                                    |
| ---------------- | ------ | -------------------------------------------------------------- |
| `event_type`     | string | Allowed value: `ash.query.stop`.                               |
| `span_id`        | string | Unique ID for this span, for correlating nested spans.         |
| `name`           | string | Span name, typically the action or operation name.             |
| `parent_span_id` | string | ID of the parent span, enabling operation tree reconstruction. |
| `duration`       | number | Span duration in microseconds.                                 |
| `metadata`       | object | Additional metadata set via set\_metadata/2.                   |
| `metadata.*`     | any    | Additional caller-defined keys.                                |
| `error`          | object | Present when the span records an error with set\_error/2.      |
| `error.class`    | string | Exception module name.                                         |
| `error.message`  | string | Exception message.                                             |
| `request_id`     | string | Request ID from the current EventContext.                      |

## Example

```json
{
  "event_type": "ash.query.stop",
  "span_id": "c2e4a6f8b0d1395c7e9a1b3d5f70c284",
  "name": "accounts:user.read",
  "parent_span_id": "a7c3e9f1b5d2480c9e6a1f3b7d5c2e80",
  "duration": 4200,
  "metadata": {
    "resource_short_name": "user",
    "action": "read"
  },
  "request_id": "F8ZBOg1zcBQDqDgAAADx"
}
```

---

## 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/)
