pub struct RequestLog {
Show 33 fields pub app_id: String, pub module_id: String, pub version_id: String, pub request_id: String, pub ip: String, pub start_time: Option<Timestamp>, pub end_time: Option<Timestamp>, pub latency: Option<Duration>, pub mega_cycles: i64, pub method: String, pub resource: String, pub http_version: String, pub status: i32, pub response_size: i64, pub referrer: String, pub user_agent: String, pub nickname: String, pub url_map_entry: String, pub host: String, pub cost: f64, pub task_queue_name: String, pub task_name: String, pub was_loading_request: bool, pub pending_time: Option<Duration>, pub instance_index: i32, pub finished: bool, pub first: bool, pub instance_id: String, pub line: Vec<LogLine>, pub app_engine_release: String, pub trace_id: String, pub trace_sampled: bool, pub source_reference: Vec<SourceReference>,
}
Expand description

Complete log information about a single HTTP request to an App Engine application.

Fields§

§app_id: String

Application that handled this request.

§module_id: String

Module of the application that handled this request.

§version_id: String

Version of the application that handled this request.

§request_id: String

Globally unique identifier for a request, which is based on the request start time. Request IDs for requests which started later will compare greater as strings than those for requests which started earlier.

§ip: String

Origin IP address.

§start_time: Option<Timestamp>

Time when the request started.

§end_time: Option<Timestamp>

Time when the request finished.

§latency: Option<Duration>

Latency of the request.

§mega_cycles: i64

Number of CPU megacycles used to process request.

§method: String

Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".

§resource: String

Contains the path and query portion of the URL that was requested. For example, if the URL was “http://example.com/app?name=val", the resource would be “/app?name=val”. The fragment identifier, which is identified by the # character, is not included.

§http_version: String

HTTP version of request. Example: "HTTP/1.1".

§status: i32

HTTP response status code. Example: 200, 404.

§response_size: i64

Size in bytes sent back to client by request.

§referrer: String

Referrer URL of request.

§user_agent: String

User agent that made the request.

§nickname: String

The logged-in user who made the request.

Most likely, this is the part of the user’s email before the @ sign. The field value is the same for different requests from the same user, but different users can have similar names. This information is also available to the application via the App Engine Users API.

This field will be populated starting with App Engine 1.9.21.

§url_map_entry: String

File or class that handled the request.

§host: String

Internet host and port number of the resource being requested.

§cost: f64

An indication of the relative cost of serving this request.

§task_queue_name: String

Queue name of the request, in the case of an offline request.

§task_name: String

Task name of the request, in the case of an offline request.

§was_loading_request: bool

Whether this was a loading request for the instance.

§pending_time: Option<Duration>

Time this request spent in the pending request queue.

§instance_index: i32

If the instance processing this request belongs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.

§finished: bool

Whether this request is finished or active.

§first: bool

Whether this is the first RequestLog entry for this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.

§instance_id: String

An identifier for the instance that handled the request.

§line: Vec<LogLine>

A list of log lines emitted by the application while serving this request.

§app_engine_release: String

App Engine release version.

§trace_id: String

Stackdriver Trace identifier for this request.

§trace_sampled: bool

If true, the value in the ‘trace_id’ field was sampled for storage in a trace backend.

§source_reference: Vec<SourceReference>

Source code for the application that handled this request. There can be more than one source reference per deployed application if source code is distributed among multiple repositories.

Trait Implementations§

source§

impl Clone for RequestLog

source§

fn clone(&self) -> RequestLog

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RequestLog

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RequestLog

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for RequestLog

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for RequestLog

source§

fn eq(&self, other: &RequestLog) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for RequestLog

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more