Reference documentation and code samples for the google-cloud-logging class Google::Cloud::Logging::Logger::RequestInfo.
A RequestInfo represents data about the request being handled by the current thread. It is used to configure logs coming from that thread.
The trace_id is a String that controls the trace ID sent with the log entry. If it is nil, no trace ID is sent.
The log_name is a String that controls the name of the Stackdriver log to write to. If it is nil, the default log_name for this Logger is used.
Inherits
- Struct
Methods
#env
def env() -> Object
Returns the value of attribute env
- (Object) — the current value of env
#env=
def env=(value) -> Object
Sets the attribute env
- value (Object) — the newly set value
- (Object) — the newly set value
#log_name
def log_name() -> Object
Returns the value of attribute log_name
- (Object) — the current value of log_name
#log_name=
def log_name=(value) -> Object
Sets the attribute log_name
- value (Object) — the newly set value
- (Object) — the newly set value
#trace_id
def trace_id() -> Object
Returns the value of attribute trace_id
- (Object) — the current value of trace_id
#trace_id=
def trace_id=(value) -> Object
Sets the attribute trace_id
- value (Object) — the newly set value
- (Object) — the newly set value
#trace_sampled
def trace_sampled() -> Object
Returns the value of attribute trace_sampled
- (Object) — the current value of trace_sampled
#trace_sampled=
def trace_sampled=(value) -> Object
Sets the attribute trace_sampled
- value (Object) — the newly set value
- (Object) — the newly set value