Cloud Logging API - Class Google::Cloud::Logging::Logger::RequestInfo (v2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
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.
Methods
#env
Returns the value of attribute env
Returns
-
(Object) — the current value of env
#env=
def env=(value) -> Object
Parameter
-
value (Object) — the newly set value
Returns
-
(Object) — the newly set value
#log_name
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
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]