Skip to content

request.handled

View Markdown

An inbound HTTP request finished. Emitted by the Express, Fastify, and AWS Lambda integrations in @honeybadger-io/js, and by withHoneybadger in @honeybadger-io/nextjs, when insights.http is enabled.

Category Request Fields 8 @honeybadger-io/js @honeybadger-io/nextjs

Fields

8
FieldTypeDescription
event_typestringAllowed value: request.handled.
methodstringHTTP method, e.g. "GET", "POST".
pathstringRequest path.
routestring | nullMatched route pattern when the framework provides one (for example Express req.route.path or Fastify req.routeOptions.url). Not set for AWS Lambda.
statusintegerHTTP response status code.
durationintegerRequest duration in milliseconds.
request_idstringUnique ID for this request. Read from the x-request-id or request-id header, or generated when neither is present. Merged from event context.
correlation_idstringID that may span related requests. Read from the x-correlation-id or x-amzn-trace-id header, or falls back to request_id. Merged from event context.

Example

{
"event_type": "request.handled",
"method": "GET",
"path": "/users/123",
"route": "/users/:id",
"status": 200,
"duration": 42,
"request_id": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e",
"correlation_id": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}