asgi.request
An ASGI app finished handling an HTTP request. Used by FastAPI, Starlette, and similar frameworks.
Fields
8| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: asgi.request. |
path | string | Request path from the ASGI scope. |
method | string | HTTP method, e.g. "GET", "POST". |
status | integer | HTTP response status code. |
duration | number | Request duration in milliseconds. |
params | object | Parsed query string params. Only present when include_params is enabled in insights_config. |
params.* | any | Additional caller-defined keys. |
request_id | string | Request ID from event context, if set. |
Example
{ "event_type": "asgi.request", "path": "/users/123", "method": "GET", "status": 200, "duration": 23.4567, "params": { "page": "2", "sort": "name" }, "request_id": "1f9f6f1a-2b3c-4d5e-8f6a-7b8c9d0e1f2a"}