request.net_http
An outbound HTTP request made with Ruby’s Net::HTTP.
Fields
9| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: request.net_http. |
method | string | HTTP method, e.g. "GET", "POST". |
host | string | Destination host. |
url | string | Full request URL. Only present when the net_http.insights.full_url config option is enabled. |
status | integer | HTTP response status code. |
duration | number | Round-trip duration in milliseconds. |
request_id | string | Rails request UUID, present on any event fired during a web request context. Set by the Honeybadger agent when available. |
hostname | string | Server hostname. Attached to every event by default (events.attach_hostname). |
environment | string | Application 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"}