Skip to content

django.request

View Markdown

A Django view finished handling an HTTP request.

Source Django Category Request Fields 11 honeybadger-python

Fields

11
FieldTypeDescription
event_typestringAllowed value: django.request.
pathstringRequest path, e.g. "/users/42".
methodstringHTTP method, e.g. "GET", "POST".
statusintegerHTTP response status code.
viewstringResolved view function name.
modulestringModule containing the view function.
appstringDjango app name from the URL resolver.
durationnumberRequest duration in milliseconds.
paramsobjectGET and POST params. Only present when include_params is enabled in insights_config.
params.*anyAdditional caller-defined keys.
request_idstringRequest ID from X-Request-ID header, request.id/request_id attribute, or a generated UUID. Set in event context at request start.

Example

{
"event_type": "django.request",
"path": "/users/123",
"method": "GET",
"status": 200,
"view": "user_detail",
"module": "myapp.views",
"app": "users",
"duration": 58.3214,
"params": {
"page": "2",
"sort": "name"
},
"request_id": "1f9f6f1a-2b3c-4d5e-8f6a-7b8c9d0e1f2a"
}