Skip to content

request.net_http

View Markdown

An outbound HTTP request made with Ruby’s Net::HTTP.

Source Net::HTTP Category HTTP Fields 9 honeybadger-ruby

Fields

9
FieldTypeDescription
event_typestringAllowed value: request.net_http.
methodstringHTTP method, e.g. "GET", "POST".
hoststringDestination host.
urlstringFull request URL. Only present when the net_http.insights.full_url config option is enabled.
statusintegerHTTP response status code.
durationnumberRound-trip duration in milliseconds.
request_idstringRails request UUID, present on any event fired during a web request context. Set by the Honeybadger agent when available.
hostnamestringServer hostname. Attached to every event by default (events.attach_hostname).
environmentstringApplication environment, e.g. "production". Attached to every event by default (events.attach_environment).

Example

{
"event_type": "request.net_http",
"method": "GET",
"host": "api.example.com",
"url": "https://api.example.com/v2/items/42",
"status": 200,
"duration": 89.4,
"request_id": "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01",
"hostname": "web-1.example.com",
"environment": "production"
}