pub struct RequestMetadata {
pub correlation_id: String,
pub request_id: String,
pub client_ip: String,
pub client_port: u16,
pub server_name: Option<String>,
pub protocol: String,
pub tls_version: Option<String>,
pub tls_cipher: Option<String>,
pub route_id: Option<String>,
pub upstream_id: Option<String>,
pub timestamp: String,
}Expand description
Request metadata sent to agents
Fields§
§correlation_id: StringCorrelation ID for request tracing
request_id: StringRequest ID (internal)
client_ip: StringClient IP address
client_port: u16Client port
server_name: Option<String>Server name (SNI or Host header)
protocol: StringProtocol (HTTP/1.1, HTTP/2, etc.)
tls_version: Option<String>TLS version if applicable
tls_cipher: Option<String>TLS cipher suite if applicable
route_id: Option<String>Route ID that matched
upstream_id: Option<String>Upstream ID
timestamp: StringRequest start timestamp (RFC3339)
Trait Implementations§
Source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
Source§fn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestMetadata
impl Debug for RequestMetadata
Source§impl<'de> Deserialize<'de> for RequestMetadata
impl<'de> Deserialize<'de> for RequestMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnwindSafe for RequestMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request