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
-
#env ⇒ Object
Returns the value of attribute env.
-
#log_name ⇒ Object
Returns the value of attribute log_name.
-
#trace_id ⇒ Object
Returns the value of attribute trace_id.
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env
64 65 66 |
# File 'lib/google/cloud/logging/logger.rb', line 64 def env @env end |
#log_name ⇒ Object
Returns the value of attribute log_name
64 65 66 |
# File 'lib/google/cloud/logging/logger.rb', line 64 def log_name @log_name end |
#trace_id ⇒ Object
Returns the value of attribute trace_id
64 65 66 |
# File 'lib/google/cloud/logging/logger.rb', line 64 def trace_id @trace_id end |