@@ -126,6 +126,16 @@ class LogEntry extends \Google\Collection
126126 protected $ metadataDataType = '' ;
127127 protected $ operationType = LogEntryOperation::class;
128128 protected $ operationDataType = '' ;
129+ /**
130+ * Optional. The structured OpenTelemetry protocol payload. Contains the
131+ * OpenTelemetry Resource, Instrumentation Scope, and Entities attributes for
132+ * this log as they are defined in the OTLP specification, and any other
133+ * fields that do not have a direct analog in the LogEntry. See
134+ * https://opentelemetry.io/docs/specs/otel/logs/data-model/
135+ *
136+ * @var array[]
137+ */
138+ public $ otel ;
129139 /**
130140 * The log entry payload, represented as a protocol buffer. Some Google Cloud
131141 * Platform services use this field for their log entry payloads.The following
@@ -444,6 +454,26 @@ public function getOperation()
444454 {
445455 return $ this ->operation ;
446456 }
457+ /**
458+ * Optional. The structured OpenTelemetry protocol payload. Contains the
459+ * OpenTelemetry Resource, Instrumentation Scope, and Entities attributes for
460+ * this log as they are defined in the OTLP specification, and any other
461+ * fields that do not have a direct analog in the LogEntry. See
462+ * https://opentelemetry.io/docs/specs/otel/logs/data-model/
463+ *
464+ * @param array[] $otel
465+ */
466+ public function setOtel ($ otel )
467+ {
468+ $ this ->otel = $ otel ;
469+ }
470+ /**
471+ * @return array[]
472+ */
473+ public function getOtel ()
474+ {
475+ return $ this ->otel ;
476+ }
447477 /**
448478 * The log entry payload, represented as a protocol buffer. Some Google Cloud
449479 * Platform services use this field for their log entry payloads.The following
0 commit comments