@@ -154,24 +154,22 @@ class LogEntry extends \Google\Collection
154154 protected $ sourceLocationType = LogEntrySourceLocation::class;
155155 protected $ sourceLocationDataType = '' ;
156156 /**
157- * Optional. The ID of the Cloud Trace (https://cloud.google.com/trace) span
158- * associated with the current operation in which the log is being written.
159- * For example, if a span has the REST resource name of "projects/some-
160- * project/traces/some-trace/spans/some-span-id", then the span_id field is
161- * "some-span-id".A Span (https://cloud.google.com/trace/docs/reference/v2/res
162- * t/v2/projects.traces/batchWrite#Span) represents a single operation within
163- * a trace. Whereas a trace may involve multiple different microservices
164- * running on multiple different machines, a span generally corresponds to a
165- * single logical operation being performed in a single instance of a
166- * microservice on one specific machine. Spans are the nodes within the tree
167- * that is a trace.Applications that are instrumented for tracing
168- * (https://cloud.google.com/trace/docs/setup) will generally assign a new,
169- * unique span ID on each incoming request. It is also common to create and
170- * record additional spans corresponding to internal processing elements as
171- * well as issuing requests to dependencies.The span ID is expected to be a
172- * 16-character, hexadecimal encoding of an 8-byte array and should not be
173- * zero. It should be unique within the trace and should, ideally, be
174- * generated in a manner that is uniformly random.Example values:
157+ * Optional. The ID of the Cloud Trace
158+ * (https://docs.cloud.google.com/trace/docs) span associated with the current
159+ * operation in which the log is being written.A Span (https://docs.cloud.goog
160+ * le.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
161+ * represents a single operation within a trace. Whereas a trace may involve
162+ * multiple different microservices running on multiple different machines, a
163+ * span generally corresponds to a single logical operation being performed in
164+ * a single instance of a microservice on one specific machine. Spans are the
165+ * nodes within the tree that is a trace.Applications that are instrumented
166+ * for tracing (https://docs.cloud.google.com/trace/docs/setup) will generally
167+ * assign a new, unique span ID on each incoming request. It is also common to
168+ * create and record additional spans corresponding to internal processing
169+ * elements as well as issuing requests to dependencies.The span ID is
170+ * expected to be a 16-character, hexadecimal encoding of an 8-byte array and
171+ * should not be zero. It should be unique within the trace and should,
172+ * ideally, be generated in a manner that is uniformly random.Example values:
175173 * 000000000000004a 7a2190356c3fc94b 0000f00300090021 d39223e101960076
176174 *
177175 * @var string
@@ -201,14 +199,16 @@ class LogEntry extends \Google\Collection
201199 */
202200 public $ timestamp ;
203201 /**
204- * Optional. The REST resource name of the trace being written to Cloud Trace
205- * (https://cloud.google.com/trace) in association with this log entry. For
206- * example, if your trace data is stored in the Cloud project "my-trace-
207- * project" and if the service that is creating the log entry receives a trace
208- * header that includes the trace ID "12345", then the service should use
209- * "projects/my-trace-project/traces/12345".The trace field provides the link
210- * between logs and traces. By using this field, you can navigate from a log
211- * entry to a trace.
202+ * Optional. The trace ID being written to Cloud Trace
203+ * (https://docs.cloud.google.com/trace/docs) in association with this log
204+ * entry. For example, if your trace data is stored in the Cloud project "my-
205+ * trace-project" and if the service that is creating the log entry receives a
206+ * trace header that includes the trace ID "12345", then the service should
207+ * use "12345".The REST resource name of the trace is also supported, but
208+ * using this format is not recommended. An example trace REST resource name
209+ * is similar to "projects/my-trace-project/traces/12345".The trace field
210+ * provides the link between logs and traces. By using this field, you can
211+ * navigate from a log entry to a trace.
212212 *
213213 * @var string
214214 */
@@ -541,24 +541,22 @@ public function getSourceLocation()
541541 return $ this ->sourceLocation ;
542542 }
543543 /**
544- * Optional. The ID of the Cloud Trace (https://cloud.google.com/trace) span
545- * associated with the current operation in which the log is being written.
546- * For example, if a span has the REST resource name of "projects/some-
547- * project/traces/some-trace/spans/some-span-id", then the span_id field is
548- * "some-span-id".A Span (https://cloud.google.com/trace/docs/reference/v2/res
549- * t/v2/projects.traces/batchWrite#Span) represents a single operation within
550- * a trace. Whereas a trace may involve multiple different microservices
551- * running on multiple different machines, a span generally corresponds to a
552- * single logical operation being performed in a single instance of a
553- * microservice on one specific machine. Spans are the nodes within the tree
554- * that is a trace.Applications that are instrumented for tracing
555- * (https://cloud.google.com/trace/docs/setup) will generally assign a new,
556- * unique span ID on each incoming request. It is also common to create and
557- * record additional spans corresponding to internal processing elements as
558- * well as issuing requests to dependencies.The span ID is expected to be a
559- * 16-character, hexadecimal encoding of an 8-byte array and should not be
560- * zero. It should be unique within the trace and should, ideally, be
561- * generated in a manner that is uniformly random.Example values:
544+ * Optional. The ID of the Cloud Trace
545+ * (https://docs.cloud.google.com/trace/docs) span associated with the current
546+ * operation in which the log is being written.A Span (https://docs.cloud.goog
547+ * le.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
548+ * represents a single operation within a trace. Whereas a trace may involve
549+ * multiple different microservices running on multiple different machines, a
550+ * span generally corresponds to a single logical operation being performed in
551+ * a single instance of a microservice on one specific machine. Spans are the
552+ * nodes within the tree that is a trace.Applications that are instrumented
553+ * for tracing (https://docs.cloud.google.com/trace/docs/setup) will generally
554+ * assign a new, unique span ID on each incoming request. It is also common to
555+ * create and record additional spans corresponding to internal processing
556+ * elements as well as issuing requests to dependencies.The span ID is
557+ * expected to be a 16-character, hexadecimal encoding of an 8-byte array and
558+ * should not be zero. It should be unique within the trace and should,
559+ * ideally, be generated in a manner that is uniformly random.Example values:
562560 * 000000000000004a 7a2190356c3fc94b 0000f00300090021 d39223e101960076
563561 *
564562 * @param string $spanId
@@ -633,14 +631,16 @@ public function getTimestamp()
633631 return $ this ->timestamp ;
634632 }
635633 /**
636- * Optional. The REST resource name of the trace being written to Cloud Trace
637- * (https://cloud.google.com/trace) in association with this log entry. For
638- * example, if your trace data is stored in the Cloud project "my-trace-
639- * project" and if the service that is creating the log entry receives a trace
640- * header that includes the trace ID "12345", then the service should use
641- * "projects/my-trace-project/traces/12345".The trace field provides the link
642- * between logs and traces. By using this field, you can navigate from a log
643- * entry to a trace.
634+ * Optional. The trace ID being written to Cloud Trace
635+ * (https://docs.cloud.google.com/trace/docs) in association with this log
636+ * entry. For example, if your trace data is stored in the Cloud project "my-
637+ * trace-project" and if the service that is creating the log entry receives a
638+ * trace header that includes the trace ID "12345", then the service should
639+ * use "12345".The REST resource name of the trace is also supported, but
640+ * using this format is not recommended. An example trace REST resource name
641+ * is similar to "projects/my-trace-project/traces/12345".The trace field
642+ * provides the link between logs and traces. By using this field, you can
643+ * navigate from a log entry to a trace.
644644 *
645645 * @param string $trace
646646 */
0 commit comments