@@ -24,17 +24,33 @@ class GoogleCloudApigeeV1RuntimeTraceConfig extends \Google\Collection
2424 */
2525 public const EXPORTER_EXPORTER_UNSPECIFIED = 'EXPORTER_UNSPECIFIED ' ;
2626 /**
27- * Jaeger exporter
27+ * Exports events to Jaeger. Compatible with OpenCensus protocol.
2828 */
2929 public const EXPORTER_JAEGER = 'JAEGER ' ;
3030 /**
31- * Cloudtrace exporter
31+ * Exports events to Cloud Trace. Compatible with OpenCensus protocol.
3232 */
3333 public const EXPORTER_CLOUD_TRACE = 'CLOUD_TRACE ' ;
3434 /**
35- * Open Telemetry Collector
35+ * OpenTelemetry Collector. Compatible with OpenTelemetry protocol.
3636 */
3737 public const EXPORTER_OPEN_TELEMETRY_COLLECTOR = 'OPEN_TELEMETRY_COLLECTOR ' ;
38+ /**
39+ * Exports events to Cloud Trace. Compatible with OpenTelemetry protocol.
40+ */
41+ public const EXPORTER_OPEN_TELEMETRY_CLOUD_TRACE = 'OPEN_TELEMETRY_CLOUD_TRACE ' ;
42+ /**
43+ * Protocol unspecified. Defaults to OPEN_CENSUS.
44+ */
45+ public const TRACE_PROTOCOL_TRACE_PROTOCOL_UNSPECIFIED = 'TRACE_PROTOCOL_UNSPECIFIED ' ;
46+ /**
47+ * Uses OpenCensus protocol.
48+ */
49+ public const TRACE_PROTOCOL_OPEN_CENSUS = 'OPEN_CENSUS ' ;
50+ /**
51+ * Uses OpenTelemetry Protocol (OTLP).
52+ */
53+ public const TRACE_PROTOCOL_OTLP = 'OTLP ' ;
3854 protected $ collection_key = 'overrides ' ;
3955 /**
4056 * Endpoint of the exporter.
@@ -58,13 +74,15 @@ class GoogleCloudApigeeV1RuntimeTraceConfig extends \Google\Collection
5874 */
5975 public $ name ;
6076 /**
61- * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace
62- * data. Configuration Requirements (if `open_telemetry_protocol_enabled` is
63- * `true`): - Allowed `Exporter`s: `CLOUD_TRACE` or
64- * `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`:
65- * - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is
66- * `CLOUD_TRACE`: - `endpoint` refers to a valid project ID
77+ * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send
78+ * trace data. Configuration Requirements (if
79+ * `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s:
80+ * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is
81+ * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector
82+ * URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` refers to a valid
83+ * project ID Deprecated: Use trace_protocol instead.
6784 *
85+ * @deprecated
6886 * @var bool
6987 */
7088 public $ openTelemetryProtocolEnabled ;
@@ -85,6 +103,12 @@ class GoogleCloudApigeeV1RuntimeTraceConfig extends \Google\Collection
85103 public $ revisionId ;
86104 protected $ samplingConfigType = GoogleCloudApigeeV1RuntimeTraceSamplingConfig::class;
87105 protected $ samplingConfigDataType = '' ;
106+ /**
107+ * Optional. The trace protocol to use.
108+ *
109+ * @var string
110+ */
111+ public $ traceProtocol ;
88112
89113 /**
90114 * Endpoint of the exporter.
@@ -108,7 +132,7 @@ public function getEndpoint()
108132 * consuming them. Recorded spans can be exported by registered exporters.
109133 *
110134 * Accepted values: EXPORTER_UNSPECIFIED, JAEGER, CLOUD_TRACE,
111- * OPEN_TELEMETRY_COLLECTOR
135+ * OPEN_TELEMETRY_COLLECTOR, OPEN_TELEMETRY_CLOUD_TRACE
112136 *
113137 * @param self::EXPORTER_* $exporter
114138 */
@@ -141,20 +165,23 @@ public function getName()
141165 return $ this ->name ;
142166 }
143167 /**
144- * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace
145- * data. Configuration Requirements (if `open_telemetry_protocol_enabled` is
146- * `true`): - Allowed `Exporter`s: `CLOUD_TRACE` or
147- * `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`:
148- * - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is
149- * `CLOUD_TRACE`: - `endpoint` refers to a valid project ID
168+ * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send
169+ * trace data. Configuration Requirements (if
170+ * `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s:
171+ * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is
172+ * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector
173+ * URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` refers to a valid
174+ * project ID Deprecated: Use trace_protocol instead.
150175 *
176+ * @deprecated
151177 * @param bool $openTelemetryProtocolEnabled
152178 */
153179 public function setOpenTelemetryProtocolEnabled ($ openTelemetryProtocolEnabled )
154180 {
155181 $ this ->openTelemetryProtocolEnabled = $ openTelemetryProtocolEnabled ;
156182 }
157183 /**
184+ * @deprecated
158185 * @return bool
159186 */
160187 public function getOpenTelemetryProtocolEnabled ()
@@ -226,6 +253,24 @@ public function getSamplingConfig()
226253 {
227254 return $ this ->samplingConfig ;
228255 }
256+ /**
257+ * Optional. The trace protocol to use.
258+ *
259+ * Accepted values: TRACE_PROTOCOL_UNSPECIFIED, OPEN_CENSUS, OTLP
260+ *
261+ * @param self::TRACE_PROTOCOL_* $traceProtocol
262+ */
263+ public function setTraceProtocol ($ traceProtocol )
264+ {
265+ $ this ->traceProtocol = $ traceProtocol ;
266+ }
267+ /**
268+ * @return self::TRACE_PROTOCOL_*
269+ */
270+ public function getTraceProtocol ()
271+ {
272+ return $ this ->traceProtocol ;
273+ }
229274}
230275
231276// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments