Skip to content

phoenix.endpoint.stop

View Markdown

A Phoenix or Plug request finished. Honeybadger records this from the Plug.Telemetry :stop event.

Source Phoenix Category Request Fields 16 honeybadger-elixir

Fields

16
FieldTypeDescription
event_typestringAllowed value: phoenix.endpoint.stop.
methodstringHTTP method, e.g. "GET", "POST".
request_pathstringRequest path, e.g. "/users/42".
statusintegerHTTP response status code.
paramsobjectRequest params map.
params.*anyAdditional caller-defined keys.
route_typestringHow the request was routed. Allowed values: controller, live, unknown.
controllerstringPhoenix controller module name. Present when route_type is "controller".
actionstringController action name. Present when route_type is "controller".
live_viewstringLiveView module name. Present when route_type is "live".
live_actionstringLiveView action atom. Present when route_type is "live".
formatstringResponse format, e.g. "html", "json".
viewstringPhoenix view module name.
templatestringTemplate rendered.
durationnumberTotal request duration in microseconds.
request_idstringRequest ID set from the x-request-id response header or assigns. Present on all events fired within a request context.

Example

{
"event_type": "phoenix.endpoint.stop",
"method": "GET",
"request_path": "/users/42",
"status": 200,
"params": {
"id": "42"
},
"route_type": "controller",
"controller": "MyAppWeb.UserController",
"action": "show",
"live_view": "MyAppWeb.UserLive.Show",
"live_action": "show",
"format": "html",
"view": "MyAppWeb.UserHTML",
"template": "show.html",
"duration": 150000,
"request_id": "F8ZBOg1zcBQDqDgAAADx"
}