Cloud Logging API - Class Google::Cloud::Logging::Logger::RequestInfo (v2.4.0)

Reference documentation and code samples for the Cloud Logging API 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

Returns
  • (Object) — the current value of env

#env=

def env=(value) -> Object

Sets the attribute env

Parameter
  • value (Object) — the newly set value
Returns
  • (Object) — the newly set value

#log_name

def log_name() -> Object

Returns the value of attribute log_name

Returns
  • (Object) — the current value of log_name

#log_name=

def log_name=(value) -> Object

Sets the attribute log_name

Parameter
  • value (Object) — the newly set value
Returns
  • (Object) — the newly set value

#trace_id

def trace_id() -> Object

Returns the value of attribute trace_id

Returns
  • (Object) — the current value of trace_id

#trace_id=

def trace_id=(value) -> Object

Sets the attribute trace_id

Parameter
  • value (Object) — the newly set value
Returns
  • (Object) — the newly set value

#trace_sampled

def trace_sampled() -> Object

Returns the value of attribute trace_sampled

Returns
  • (Object) — the current value of trace_sampled

#trace_sampled=

def trace_sampled=(value) -> Object

Sets the attribute trace_sampled

Parameter
  • value (Object) — the newly set value
Returns
  • (Object) — the newly set value