Skip to content

asgi.request

View Markdown

An ASGI app finished handling an HTTP request. Used by FastAPI, Starlette, and similar frameworks.

Source ASGI Category Request Fields 8 honeybadger-python

Fields

8
FieldTypeDescription
event_typestringAllowed value: asgi.request.
pathstringRequest path from the ASGI scope.
methodstringHTTP method, e.g. "GET", "POST".
statusintegerHTTP response status code.
durationnumberRequest duration in milliseconds.
paramsobjectParsed query string params. Only present when include_params is enabled in insights_config.
params.*anyAdditional caller-defined keys.
request_idstringRequest 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"
}