Class: Google::Cloud::Logging::Logger::RequestInfo
- Inherits:
-
Struct
- Object
- Struct
- Google::Cloud::Logging::Logger::RequestInfo
- Defined in:
- lib/google/cloud/logging/logger.rb
Overview
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.
Instance Attribute Summary collapse
-
#log_name ⇒ Object
Returns the value of attribute log_name.
-
#trace_id ⇒ Object
Returns the value of attribute trace_id.
Instance Attribute Details
#log_name ⇒ Object
Returns the value of attribute log_name
51 52 53 |
# File 'lib/google/cloud/logging/logger.rb', line 51 def log_name @log_name end |
#trace_id ⇒ Object
Returns the value of attribute trace_id
51 52 53 |
# File 'lib/google/cloud/logging/logger.rb', line 51 def trace_id @trace_id end |