pub struct Request {
pub method: Option<String>,
pub url: Option<String>,
pub client_ip: Option<String>,
pub user_agent: Option<String>,
pub x_forwarded_for: Option<String>,
pub traced: Option<bool>,
}
Expand description
Information about a request.
Fields§
§method: Option<String>
The request method. For example, GET.
url: Option<String>
The full URL of the request, compiled from the protocol, hostname, and path of the request.
client_ip: Option<String>
The IP address of the requester. Can be retrieved from the IP packet’s Source Address or, for forwarded requests, from an X-Forwarded-For header.
user_agent: Option<String>
The user agent string from the requester’s client.
x_forwarded_for: Option<String>
(segments only) boolean indicating that the client_ip was read from an X-Forwarded-For header and is not reliable as it could have been forged.
traced: Option<bool>
(subsegments only) boolean indicating that the downstream call is to another traced service. If this field is set to true, X-Ray considers the trace to be broken until the downstream service uploads a segment with a parent_id that matches the id of the subsegment that contains this block.