From 29b7da48c4a48f78b11845217903967790c92b21 Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Thu, 16 Jan 2025 10:07:07 +1100 Subject: [PATCH] generate proto 1.5.0 (#1478) --- .../V1Development/ProfilesService.php | Bin 0 -> 1594 bytes .../Opentelemetry/Proto/Logs/V1/Logs.php | Bin 2512 -> 2532 bytes .../Proto/Profiles/V1Development/Profiles.php | Bin 0 -> 3718 bytes .../ExportProfilesPartialSuccess.php | 127 +++ .../ExportProfilesServiceRequest.php | 81 ++ .../ExportProfilesServiceResponse.php | 119 +++ .../V1development/ProfilesServiceClient.php | 52 + .../Opentelemetry/Proto/Logs/V1/LogRecord.php | 62 ++ .../Proto/Logs/V1/ResourceLogs.php | 12 +- .../Opentelemetry/Proto/Logs/V1/ScopeLogs.php | 12 +- .../V1/ExponentialHistogramDataPoint.php | 8 +- .../Proto/Metrics/V1/HistogramDataPoint.php | 8 +- .../Opentelemetry/Proto/Metrics/V1/Metric.php | 2 +- .../Proto/Metrics/V1/MetricsData.php | 17 + .../Proto/Metrics/V1/ResourceMetrics.php | 12 +- .../Proto/Metrics/V1/ScopeMetrics.php | 12 +- .../Proto/Metrics/V1/Summary.php | 3 + .../Proto/Metrics/V1/SummaryDataPoint.php | 11 +- .../V1development/AggregationTemporality.php | 111 +++ .../Profiles/V1development/AttributeUnit.php | 101 ++ .../Proto/Profiles/V1development/Line.php | 135 +++ .../Proto/Profiles/V1development/Link.php | 106 ++ .../Proto/Profiles/V1development/Location.php | 273 ++++++ .../Proto/Profiles/V1development/Mapping.php | 327 +++++++ .../Profiles/V1development/PBFunction.php | 174 ++++ .../Proto/Profiles/V1development/Profile.php | 906 ++++++++++++++++++ .../Profiles/V1development/ProfilesData.php | 90 ++ .../V1development/ResourceProfiles.php | 169 ++++ .../Proto/Profiles/V1development/Sample.php | 278 ++++++ .../Profiles/V1development/ScopeProfiles.php | 169 ++++ .../Profiles/V1development/ValueType.php | 128 +++ .../Proto/Trace/V1/ResourceSpans.php | 12 +- .../Proto/Trace/V1/ScopeSpans.php | 12 +- proto/otel/VERSION | 2 +- 34 files changed, 3492 insertions(+), 39 deletions(-) create mode 100644 proto/otel/GPBMetadata/Opentelemetry/Proto/Collector/Profiles/V1Development/ProfilesService.php create mode 100644 proto/otel/GPBMetadata/Opentelemetry/Proto/Profiles/V1Development/Profiles.php create mode 100644 proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesPartialSuccess.php create mode 100644 proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceRequest.php create mode 100644 proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceResponse.php create mode 100644 proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ProfilesServiceClient.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/AggregationTemporality.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/AttributeUnit.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Line.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Link.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Location.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Mapping.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/PBFunction.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Profile.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/ProfilesData.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/ResourceProfiles.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/Sample.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/ScopeProfiles.php create mode 100644 proto/otel/Opentelemetry/Proto/Profiles/V1development/ValueType.php diff --git a/proto/otel/GPBMetadata/Opentelemetry/Proto/Collector/Profiles/V1Development/ProfilesService.php b/proto/otel/GPBMetadata/Opentelemetry/Proto/Collector/Profiles/V1Development/ProfilesService.php new file mode 100644 index 0000000000000000000000000000000000000000..c6b561600276379396c15bcaef213889dad24695 GIT binary patch literal 1594 zcmb_c(P|Sx6m?q&I3mSGp^Cy73r#_{v=)SIV=<(9+-Ny zKHliV7-B9)CcSvwRUpTVLXg!Vl#mf9K`7u>r|||f=@U(&_AEuzu`Na~a|#=06w$kl z<|)NCLNq2y;r#QVV?y5%Hb0T}Vn(sjM4QJ7Q(cxY%}C6?88Pa3Kw=#~Vx-`yNy*~5#q8=E`9d5n2dnI|}yg5)&SA0B#e0kaZ3QQ&_hRHAWa!W8;MErWJLo1z$z|8vS4D=f zykNS#zWLijOZl`@QT<;Ys<<}%D;c7ESoaRELYM;69Ygh6CI8AXJIxVTcwQu9jU^AdAYC3qAVH8?jvXMM>G E0BfrbZ~y=R delta 27 jcmaDNd_j0aHWTBV%{febOib^YHrKFZGj9IP`jQy{jPVKg diff --git a/proto/otel/GPBMetadata/Opentelemetry/Proto/Profiles/V1Development/Profiles.php b/proto/otel/GPBMetadata/Opentelemetry/Proto/Profiles/V1Development/Profiles.php new file mode 100644 index 0000000000000000000000000000000000000000..037dbc62291e946ac2ba1593e06e1b202f40ae87 GIT binary patch literal 3718 zcmbVPO>f&q5DhKKlE#uEZxWjgl9o||+7240Nt#2Pk5-Cg*Qp)3j+~-}0D>l0G7*wX zkjo%yk$VsQ4L$W#6a{+ft$!w$_Fr^%Ns5*uCs2HliRJ8@H#2XByAQtfk9@eQZBdT~ z2B(&GIMVnL)%<{QW->=Rj0OW5XeM)g+o8d_rnS4;({4}ew6}X#aBIk-z@!@*^Qp(F zLtV;)(M`Eu{0?wec=P2gi@u}|^IbF=FRx200MBq~=o=>0w)R@PlpB`8jehqyV1G{# z62B6#|NK@v1H2DlIz||3>1+52H2m|UL&r9?kQ*HTU9&^o_H1q&j{PG>`cNAfPDpX{ z+qQ$qGr7$?O>F3TCS6_AVoYIs&1aaIhgyG&v7tj_ZkVY4HfA9345#0wp&8gdXTctt zZfp!GAE#KXtga<)1)M$5R%4DE8*h<(sPQ18$GvM>KzS5+_a$!u@Ou2ze_sM0GuLGv zrmr7AZER!_W`OU7*{5;Y1yK4t9ZKfv#v?n)Ow+Q)iP%JGtd6ORKvv+7Ww`gjN+Q=M zw#M=jzfv>n6C%90K4F^(Hb~+^!QM=tW0=MeDyh8MC{OYoET$HE>Oxht-0H&Z2b0+E zqd@)SBDoKx)Ehcc(8=0VC#ewzJ4PnoLM=2g+>Ga(kOwzSf@! zgp?#90HJwAT|=)?>UXC4#Sw$j6vVf^5JfLW z1vW18Bo^sFDP^X{^ryq5MknYe%%>4=yeUF4eg6a&Lc{ePs`HUglY-uzO868{&kZM{ zJ={!MFdt(jgm2FR^GvcJPoU}=zHfU&og0S^#as)C%@q4?3_y0E<}g#{Gy%&?urFre zwUZza73yO&+p}zwhH3%v3c^o1KodXnv-{ahMlksb&KjHt_F=@aC^82{3D;kl$~)81 zH*_S6LH3VBL^#qzwIm^C>VRg-;s6my8^E!>7YU=Xg!_Cdp;L6SgS*LjsG!!f>H^}F zg-E&WQr$B=7OD%_T{*G@H7mkzG&V%CUXkl4Sf2(qvtq$k<#6~w!Pa0t#!_n%`yvpL zO>9J6vW$y-7C9EkHMnHafe|_QE^C;?j=oash)@ubB;o6}r7q%Hg=nB!0rP!o>EptN zy2&DstLM<7N9F6)0!(0P)07$?)FghM2Hy42J<7CJjqnp9Oe!;UhV3YqwjosI8en^)jT!Ukc18 zljbs9Nc%ZNiblXi{;-lU%VX^x>JIgW{742_AXO;56f;kbrW~1C0WoL_WI5@X7`Gs@ z`SqEf6@^@a^Fr|G)%8Oilm1F-TorR8->SlbE_+SxYrIjQn2t2;AD6l;5Vb?bl51Xc zRkG^XuFWOSJUIso;vk^2!62kuCNVGAibZh*&FYdD%%%qtPdKdPkrC?YlnarlvRV>? zk;@5Ss21fircNwl2-wn*dq@K@f5Zm#F5cLld^ZThL0Bz|SB<|FD2-?B#q29^tR`{p zP;`c6;fFs=;(P>o0hfF!W}QitEJ7KN$^+(D)KWz%B+slY5+@Y zC~_Lb!j}0Fq2;dsqQKJh<{+V5;Nd)wWodatv)*WGXKZ1=v`51u~T>pb4x z-0rmNXUG+}e41gqv(szV74j)GPBVFYuzRqBE}nPlbFJSLxM8yyTDw(E&MqPT=WI{; z;qLI{ew!r+T*e)LeE*ufmi<0=y^B|_UV4XHmvG`YK0Z%exen)j;q1=J`27A^d{H@e VufbH~y=%&yMq0+Vjo0uR;D4ces}BGG literal 0 HcmV?d00001 diff --git a/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesPartialSuccess.php b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesPartialSuccess.php new file mode 100644 index 000000000..2d32715f9 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesPartialSuccess.php @@ -0,0 +1,127 @@ +opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess + */ +class ExportProfilesPartialSuccess extends \Google\Protobuf\Internal\Message +{ + /** + * The number of rejected profiles. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_profiles = 1; + */ + protected $rejected_profiles = 0; + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field string error_message = 2; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $rejected_profiles + * The number of rejected profiles. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * @type string $error_message + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Collector\Profiles\V1Development\ProfilesService::initOnce(); + parent::__construct($data); + } + + /** + * The number of rejected profiles. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_profiles = 1; + * @return int|string + */ + public function getRejectedProfiles() + { + return $this->rejected_profiles; + } + + /** + * The number of rejected profiles. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_profiles = 1; + * @param int|string $var + * @return $this + */ + public function setRejectedProfiles($var) + { + GPBUtil::checkInt64($var); + $this->rejected_profiles = $var; + + return $this; + } + + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field string error_message = 2; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceRequest.php b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceRequest.php new file mode 100644 index 000000000..e5bc67a89 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceRequest.php @@ -0,0 +1,81 @@ +opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest + */ +class ExportProfilesServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain one + * element. Intermediary nodes (such as OpenTelemetry Collector) that receive + * data from multiple origins typically batch the data before forwarding further and + * in that case this array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + */ + private $resource_profiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles[]|\Google\Protobuf\Internal\RepeatedField $resource_profiles + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain one + * element. Intermediary nodes (such as OpenTelemetry Collector) that receive + * data from multiple origins typically batch the data before forwarding further and + * in that case this array will contain multiple elements. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Collector\Profiles\V1Development\ProfilesService::initOnce(); + parent::__construct($data); + } + + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain one + * element. Intermediary nodes (such as OpenTelemetry Collector) that receive + * data from multiple origins typically batch the data before forwarding further and + * in that case this array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceProfiles() + { + return $this->resource_profiles; + } + + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain one + * element. Intermediary nodes (such as OpenTelemetry Collector) that receive + * data from multiple origins typically batch the data before forwarding further and + * in that case this array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + * @param \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles::class); + $this->resource_profiles = $arr; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceResponse.php b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceResponse.php new file mode 100644 index 000000000..e6f8c5952 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ExportProfilesServiceResponse.php @@ -0,0 +1,119 @@ +opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse + */ +class ExportProfilesServiceResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The details of a partially successful export request. + * If the request is only partially accepted + * (i.e. when the server accepts only parts of the data and rejects the rest) + * the server MUST initialize the `partial_success` field and MUST + * set the `rejected_` with the number of items it rejected. + * Servers MAY also make use of the `partial_success` field to convey + * warnings/suggestions to senders even when the request was fully accepted. + * In such cases, the `rejected_` MUST have a value of `0` and + * the `error_message` MUST be non-empty. + * A `partial_success` message with an empty value (rejected_ = 0 and + * `error_message` = "") is equivalent to it not being set/present. Senders + * SHOULD interpret it the same way as in the full success case. + * + * Generated from protobuf field .opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess partial_success = 1; + */ + protected $partial_success = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Collector\Profiles\V1development\ExportProfilesPartialSuccess $partial_success + * The details of a partially successful export request. + * If the request is only partially accepted + * (i.e. when the server accepts only parts of the data and rejects the rest) + * the server MUST initialize the `partial_success` field and MUST + * set the `rejected_` with the number of items it rejected. + * Servers MAY also make use of the `partial_success` field to convey + * warnings/suggestions to senders even when the request was fully accepted. + * In such cases, the `rejected_` MUST have a value of `0` and + * the `error_message` MUST be non-empty. + * A `partial_success` message with an empty value (rejected_ = 0 and + * `error_message` = "") is equivalent to it not being set/present. Senders + * SHOULD interpret it the same way as in the full success case. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Collector\Profiles\V1Development\ProfilesService::initOnce(); + parent::__construct($data); + } + + /** + * The details of a partially successful export request. + * If the request is only partially accepted + * (i.e. when the server accepts only parts of the data and rejects the rest) + * the server MUST initialize the `partial_success` field and MUST + * set the `rejected_` with the number of items it rejected. + * Servers MAY also make use of the `partial_success` field to convey + * warnings/suggestions to senders even when the request was fully accepted. + * In such cases, the `rejected_` MUST have a value of `0` and + * the `error_message` MUST be non-empty. + * A `partial_success` message with an empty value (rejected_ = 0 and + * `error_message` = "") is equivalent to it not being set/present. Senders + * SHOULD interpret it the same way as in the full success case. + * + * Generated from protobuf field .opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess partial_success = 1; + * @return \Opentelemetry\Proto\Collector\Profiles\V1development\ExportProfilesPartialSuccess|null + */ + public function getPartialSuccess() + { + return $this->partial_success; + } + + public function hasPartialSuccess() + { + return isset($this->partial_success); + } + + public function clearPartialSuccess() + { + unset($this->partial_success); + } + + /** + * The details of a partially successful export request. + * If the request is only partially accepted + * (i.e. when the server accepts only parts of the data and rejects the rest) + * the server MUST initialize the `partial_success` field and MUST + * set the `rejected_` with the number of items it rejected. + * Servers MAY also make use of the `partial_success` field to convey + * warnings/suggestions to senders even when the request was fully accepted. + * In such cases, the `rejected_` MUST have a value of `0` and + * the `error_message` MUST be non-empty. + * A `partial_success` message with an empty value (rejected_ = 0 and + * `error_message` = "") is equivalent to it not being set/present. Senders + * SHOULD interpret it the same way as in the full success case. + * + * Generated from protobuf field .opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess partial_success = 1; + * @param \Opentelemetry\Proto\Collector\Profiles\V1development\ExportProfilesPartialSuccess $var + * @return $this + */ + public function setPartialSuccess($var) + { + GPBUtil::checkMessage($var, \Opentelemetry\Proto\Collector\Profiles\V1development\ExportProfilesPartialSuccess::class); + $this->partial_success = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ProfilesServiceClient.php b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ProfilesServiceClient.php new file mode 100644 index 000000000..80e69fe59 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Collector/Profiles/V1development/ProfilesServiceClient.php @@ -0,0 +1,52 @@ +_simpleRequest('/opentelemetry.proto.collector.profiles.v1development.ProfilesService/Export', + $argument, + ['\Opentelemetry\Proto\Collector\Profiles\V1development\ExportProfilesServiceResponse', 'decode'], + $metadata, $options); + } + +} diff --git a/proto/otel/Opentelemetry/Proto/Logs/V1/LogRecord.php b/proto/otel/Opentelemetry/Proto/Logs/V1/LogRecord.php index caca11f87..3ec3e1b43 100644 --- a/proto/otel/Opentelemetry/Proto/Logs/V1/LogRecord.php +++ b/proto/otel/Opentelemetry/Proto/Logs/V1/LogRecord.php @@ -115,6 +115,19 @@ class LogRecord extends \Google\Protobuf\Internal\Message * Generated from protobuf field bytes span_id = 10; */ protected $span_id = ''; + /** + * A unique identifier of event category/type. + * All events with the same event_name are expected to conform to the same + * schema for both their attributes and their body. + * Recommended to be fully qualified and short (no longer than 256 characters). + * Presence of event_name on the log record identifies this record + * as an event. + * [Optional]. + * Status: [Development] + * + * Generated from protobuf field string event_name = 12; + */ + protected $event_name = ''; /** * Constructor. @@ -182,6 +195,15 @@ class LogRecord extends \Google\Protobuf\Internal\Message * span if any of the following is true: * - the field is not present, * - the field contains an invalid value. + * @type string $event_name + * A unique identifier of event category/type. + * All events with the same event_name are expected to conform to the same + * schema for both their attributes and their body. + * Recommended to be fully qualified and short (no longer than 256 characters). + * Presence of event_name on the log record identifies this record + * as an event. + * [Optional]. + * Status: [Development] * } */ public function __construct($data = NULL) { @@ -537,5 +559,45 @@ public function setSpanId($var) return $this; } + /** + * A unique identifier of event category/type. + * All events with the same event_name are expected to conform to the same + * schema for both their attributes and their body. + * Recommended to be fully qualified and short (no longer than 256 characters). + * Presence of event_name on the log record identifies this record + * as an event. + * [Optional]. + * Status: [Development] + * + * Generated from protobuf field string event_name = 12; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * A unique identifier of event category/type. + * All events with the same event_name are expected to conform to the same + * schema for both their attributes and their body. + * Recommended to be fully qualified and short (no longer than 256 characters). + * Presence of event_name on the log record identifies this record + * as an event. + * [Optional]. + * Status: [Development] + * + * Generated from protobuf field string event_name = 12; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + } diff --git a/proto/otel/Opentelemetry/Proto/Logs/V1/ResourceLogs.php b/proto/otel/Opentelemetry/Proto/Logs/V1/ResourceLogs.php index b78f6d86c..2868a0eb7 100644 --- a/proto/otel/Opentelemetry/Proto/Logs/V1/ResourceLogs.php +++ b/proto/otel/Opentelemetry/Proto/Logs/V1/ResourceLogs.php @@ -30,7 +30,8 @@ class ResourceLogs extends \Google\Protobuf\Internal\Message private $scope_logs; /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_logs" field which have their own schema_url field. @@ -52,7 +53,8 @@ class ResourceLogs extends \Google\Protobuf\Internal\Message * A list of ScopeLogs that originate from a resource. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_logs" field which have their own schema_url field. @@ -129,7 +131,8 @@ public function setScopeLogs($var) /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_logs" field which have their own schema_url field. @@ -144,7 +147,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_logs" field which have their own schema_url field. diff --git a/proto/otel/Opentelemetry/Proto/Logs/V1/ScopeLogs.php b/proto/otel/Opentelemetry/Proto/Logs/V1/ScopeLogs.php index 38839ee9e..198c70eec 100644 --- a/proto/otel/Opentelemetry/Proto/Logs/V1/ScopeLogs.php +++ b/proto/otel/Opentelemetry/Proto/Logs/V1/ScopeLogs.php @@ -31,7 +31,8 @@ class ScopeLogs extends \Google\Protobuf\Internal\Message private $log_records; /** * The Schema URL, if known. This is the identifier of the Schema that the log data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all logs in the "logs" field. * @@ -53,7 +54,8 @@ class ScopeLogs extends \Google\Protobuf\Internal\Message * A list of log records. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the log data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all logs in the "logs" field. * } @@ -131,7 +133,8 @@ public function setLogRecords($var) /** * The Schema URL, if known. This is the identifier of the Schema that the log data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all logs in the "logs" field. * @@ -145,7 +148,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the log data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all logs in the "logs" field. * diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint.php index 62cb6f5d6..db1bf7700 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint.php @@ -59,7 +59,7 @@ class ExponentialHistogramDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; */ @@ -173,7 +173,7 @@ class ExponentialHistogramDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * @type int $scale * scale describes the resolution of the histogram. Boundaries are * located at powers of the base, where: @@ -353,7 +353,7 @@ public function setCount($var) * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; * @return float @@ -380,7 +380,7 @@ public function clearSum() * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; * @param float $var diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/HistogramDataPoint.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/HistogramDataPoint.php index 2b19dd856..c5d57b1a2 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/HistogramDataPoint.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/HistogramDataPoint.php @@ -64,7 +64,7 @@ class HistogramDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; */ @@ -151,7 +151,7 @@ class HistogramDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $bucket_counts * bucket_counts is an optional field contains the count values of histogram * for each bucket. @@ -316,7 +316,7 @@ public function setCount($var) * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; * @return float @@ -343,7 +343,7 @@ public function clearSum() * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram * * Generated from protobuf field optional double sum = 5; * @param float $var diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/Metric.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/Metric.php index e6d51588f..438eb7a0a 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/Metric.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/Metric.php @@ -21,7 +21,7 @@ * - Data is one of the possible types (Sum, Gauge, Histogram, Summary). * - DataPoint contains timestamps, attributes, and one of the possible value type * fields. - * Metric + * Metric * +------------+ * |name | * |description | diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/MetricsData.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/MetricsData.php index ce144d8f3..ed5cdd3f8 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/MetricsData.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/MetricsData.php @@ -12,6 +12,23 @@ * MetricsData represents the metrics data that can be stored in a persistent * storage, OR can be embedded by other protocols that transfer OTLP metrics * data but do not implement the OTLP protocol. + * MetricsData + * └─── ResourceMetrics + * ├── Resource + * ├── SchemaURL + * └── ScopeMetrics + * ├── Scope + * ├── SchemaURL + * └── Metric + * ├── Name + * ├── Description + * ├── Unit + * └── data + * ├── Gauge + * ├── Sum + * ├── Histogram + * ├── ExponentialHistogram + * └── Summary * The main difference between this message and collector protocol is that * in this message there will not be any "control" or "metadata" specific to * OTLP protocol. diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/ResourceMetrics.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/ResourceMetrics.php index 3cc316594..792767a9e 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/ResourceMetrics.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/ResourceMetrics.php @@ -30,7 +30,8 @@ class ResourceMetrics extends \Google\Protobuf\Internal\Message private $scope_metrics; /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_metrics" field which have their own schema_url field. @@ -52,7 +53,8 @@ class ResourceMetrics extends \Google\Protobuf\Internal\Message * A list of metrics that originate from a resource. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_metrics" field which have their own schema_url field. @@ -129,7 +131,8 @@ public function setScopeMetrics($var) /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_metrics" field which have their own schema_url field. @@ -144,7 +147,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_metrics" field which have their own schema_url field. diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/ScopeMetrics.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/ScopeMetrics.php index 0f0632c41..8d34f3ae0 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/ScopeMetrics.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/ScopeMetrics.php @@ -31,7 +31,8 @@ class ScopeMetrics extends \Google\Protobuf\Internal\Message private $metrics; /** * The Schema URL, if known. This is the identifier of the Schema that the metric data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all metrics in the "metrics" field. * @@ -53,7 +54,8 @@ class ScopeMetrics extends \Google\Protobuf\Internal\Message * A list of metrics that originate from an instrumentation library. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the metric data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all metrics in the "metrics" field. * } @@ -131,7 +133,8 @@ public function setMetrics($var) /** * The Schema URL, if known. This is the identifier of the Schema that the metric data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all metrics in the "metrics" field. * @@ -145,7 +148,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the metric data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all metrics in the "metrics" field. * diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/Summary.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/Summary.php index adb5eceb9..c5ce116e4 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/Summary.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/Summary.php @@ -15,6 +15,9 @@ * data type. These data points cannot always be merged in a meaningful way. * While they can be useful in some applications, histogram data points are * recommended for new applications. + * Summary metrics do not have an aggregation temporality field. This is + * because the count and sum fields of a SummaryDataPoint are assumed to be + * cumulative values. * * Generated from protobuf message opentelemetry.proto.metrics.v1.Summary */ diff --git a/proto/otel/Opentelemetry/Proto/Metrics/V1/SummaryDataPoint.php b/proto/otel/Opentelemetry/Proto/Metrics/V1/SummaryDataPoint.php index 30cf4ade4..7118a843e 100644 --- a/proto/otel/Opentelemetry/Proto/Metrics/V1/SummaryDataPoint.php +++ b/proto/otel/Opentelemetry/Proto/Metrics/V1/SummaryDataPoint.php @@ -10,7 +10,8 @@ /** * SummaryDataPoint is a single data point in a timeseries that describes the - * time-varying values of a Summary metric. + * time-varying values of a Summary metric. The count and sum fields represent + * cumulative values. * * Generated from protobuf message opentelemetry.proto.metrics.v1.SummaryDataPoint */ @@ -55,7 +56,7 @@ class SummaryDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary * * Generated from protobuf field double sum = 5; */ @@ -104,7 +105,7 @@ class SummaryDataPoint extends \Google\Protobuf\Internal\Message * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary * @type \Opentelemetry\Proto\Metrics\V1\SummaryDataPoint\ValueAtQuantile[]|\Google\Protobuf\Internal\RepeatedField $quantile_values * (Optional) list of values at different quantiles of the distribution calculated * from the current snapshot. The quantiles must be strictly increasing. @@ -245,7 +246,7 @@ public function setCount($var) * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary * * Generated from protobuf field double sum = 5; * @return float @@ -262,7 +263,7 @@ public function getSum() * events, and is assumed to be monotonic over the values of these events. * Negative events *can* be recorded, but sum should not be filled out when * doing so. This is specifically to enforce compatibility w/ OpenMetrics, - * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary + * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary * * Generated from protobuf field double sum = 5; * @param float $var diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/AggregationTemporality.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/AggregationTemporality.php new file mode 100644 index 000000000..38ac6c4d4 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/AggregationTemporality.php @@ -0,0 +1,111 @@ +opentelemetry.proto.profiles.v1development.AggregationTemporality + */ +class AggregationTemporality +{ + /** + * UNSPECIFIED is the default AggregationTemporality, it MUST not be used. + * + * Generated from protobuf enum AGGREGATION_TEMPORALITY_UNSPECIFIED = 0; + */ + const AGGREGATION_TEMPORALITY_UNSPECIFIED = 0; + /** + ** DELTA is an AggregationTemporality for a profiler which reports + *changes since last report time. Successive metrics contain aggregation of + *values from continuous and non-overlapping intervals. + *The values for a DELTA metric are based only on the time interval + *associated with one measurement cycle. There is no dependency on + *previous measurements like is the case for CUMULATIVE metrics. + *For example, consider a system measuring the number of requests that + *it receives and reports the sum of these requests every second as a + *DELTA metric: + *1. The system starts receiving at time=t_0. + *2. A request is received, the system measures 1 request. + *3. A request is received, the system measures 1 request. + *4. A request is received, the system measures 1 request. + *5. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+1 with a value of 3. + *6. A request is received, the system measures 1 request. + *7. A request is received, the system measures 1 request. + *8. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0+1 to + *t_0+2 with a value of 2. + * + * Generated from protobuf enum AGGREGATION_TEMPORALITY_DELTA = 1; + */ + const AGGREGATION_TEMPORALITY_DELTA = 1; + /** + ** CUMULATIVE is an AggregationTemporality for a profiler which + *reports changes since a fixed start time. This means that current values + *of a CUMULATIVE metric depend on all previous measurements since the + *start time. Because of this, the sender is required to retain this state + *in some form. If this state is lost or invalidated, the CUMULATIVE metric + *values MUST be reset and a new fixed start time following the last + *reported measurement time sent MUST be used. + *For example, consider a system measuring the number of requests that + *it receives and reports the sum of these requests every second as a + *CUMULATIVE metric: + *1. The system starts receiving at time=t_0. + *2. A request is received, the system measures 1 request. + *3. A request is received, the system measures 1 request. + *4. A request is received, the system measures 1 request. + *5. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+1 with a value of 3. + *6. A request is received, the system measures 1 request. + *7. A request is received, the system measures 1 request. + *8. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+2 with a value of 5. + *9. The system experiences a fault and loses state. + *10. The system recovers and resumes receiving at time=t_1. + *11. A request is received, the system measures 1 request. + *12. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_1 to + *t_1+1 with a value of 1. + *Note: Even though, when reporting changes since last report time, using + *CUMULATIVE is valid, it is not recommended. + * + * Generated from protobuf enum AGGREGATION_TEMPORALITY_CUMULATIVE = 2; + */ + const AGGREGATION_TEMPORALITY_CUMULATIVE = 2; + + private static $valueToName = [ + self::AGGREGATION_TEMPORALITY_UNSPECIFIED => 'AGGREGATION_TEMPORALITY_UNSPECIFIED', + self::AGGREGATION_TEMPORALITY_DELTA => 'AGGREGATION_TEMPORALITY_DELTA', + self::AGGREGATION_TEMPORALITY_CUMULATIVE => 'AGGREGATION_TEMPORALITY_CUMULATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/AttributeUnit.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/AttributeUnit.php new file mode 100644 index 000000000..8e8bbd769 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/AttributeUnit.php @@ -0,0 +1,101 @@ +opentelemetry.proto.profiles.v1development.AttributeUnit + */ +class AttributeUnit extends \Google\Protobuf\Internal\Message +{ + /** + * Index into string table. + * + * Generated from protobuf field int32 attribute_key_strindex = 1; + */ + protected $attribute_key_strindex = 0; + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + */ + protected $unit_strindex = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $attribute_key_strindex + * Index into string table. + * @type int $unit_strindex + * Index into string table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 attribute_key_strindex = 1; + * @return int + */ + public function getAttributeKeyStrindex() + { + return $this->attribute_key_strindex; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 attribute_key_strindex = 1; + * @param int $var + * @return $this + */ + public function setAttributeKeyStrindex($var) + { + GPBUtil::checkInt32($var); + $this->attribute_key_strindex = $var; + + return $this; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + * @return int + */ + public function getUnitStrindex() + { + return $this->unit_strindex; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + * @param int $var + * @return $this + */ + public function setUnitStrindex($var) + { + GPBUtil::checkInt32($var); + $this->unit_strindex = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Line.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Line.php new file mode 100644 index 000000000..deca9c9cb --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Line.php @@ -0,0 +1,135 @@ +opentelemetry.proto.profiles.v1development.Line + */ +class Line extends \Google\Protobuf\Internal\Message +{ + /** + * Reference to function in Profile.function_table. + * + * Generated from protobuf field int32 function_index = 1; + */ + protected $function_index = 0; + /** + * Line number in source code. + * + * Generated from protobuf field int64 line = 2; + */ + protected $line = 0; + /** + * Column number in source code. + * + * Generated from protobuf field int64 column = 3; + */ + protected $column = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $function_index + * Reference to function in Profile.function_table. + * @type int|string $line + * Line number in source code. + * @type int|string $column + * Column number in source code. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Reference to function in Profile.function_table. + * + * Generated from protobuf field int32 function_index = 1; + * @return int + */ + public function getFunctionIndex() + { + return $this->function_index; + } + + /** + * Reference to function in Profile.function_table. + * + * Generated from protobuf field int32 function_index = 1; + * @param int $var + * @return $this + */ + public function setFunctionIndex($var) + { + GPBUtil::checkInt32($var); + $this->function_index = $var; + + return $this; + } + + /** + * Line number in source code. + * + * Generated from protobuf field int64 line = 2; + * @return int|string + */ + public function getLine() + { + return $this->line; + } + + /** + * Line number in source code. + * + * Generated from protobuf field int64 line = 2; + * @param int|string $var + * @return $this + */ + public function setLine($var) + { + GPBUtil::checkInt64($var); + $this->line = $var; + + return $this; + } + + /** + * Column number in source code. + * + * Generated from protobuf field int64 column = 3; + * @return int|string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Column number in source code. + * + * Generated from protobuf field int64 column = 3; + * @param int|string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkInt64($var); + $this->column = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Link.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Link.php new file mode 100644 index 000000000..f256a7440 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Link.php @@ -0,0 +1,106 @@ +opentelemetry.proto.profiles.v1development.Link + */ +class Link extends \Google\Protobuf\Internal\Message +{ + /** + * A unique identifier of a trace that this linked span is part of. The ID is a + * 16-byte array. + * + * Generated from protobuf field bytes trace_id = 1; + */ + protected $trace_id = ''; + /** + * A unique identifier for the linked span. The ID is an 8-byte array. + * + * Generated from protobuf field bytes span_id = 2; + */ + protected $span_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $trace_id + * A unique identifier of a trace that this linked span is part of. The ID is a + * 16-byte array. + * @type string $span_id + * A unique identifier for the linked span. The ID is an 8-byte array. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * A unique identifier of a trace that this linked span is part of. The ID is a + * 16-byte array. + * + * Generated from protobuf field bytes trace_id = 1; + * @return string + */ + public function getTraceId() + { + return $this->trace_id; + } + + /** + * A unique identifier of a trace that this linked span is part of. The ID is a + * 16-byte array. + * + * Generated from protobuf field bytes trace_id = 1; + * @param string $var + * @return $this + */ + public function setTraceId($var) + { + GPBUtil::checkString($var, False); + $this->trace_id = $var; + + return $this; + } + + /** + * A unique identifier for the linked span. The ID is an 8-byte array. + * + * Generated from protobuf field bytes span_id = 2; + * @return string + */ + public function getSpanId() + { + return $this->span_id; + } + + /** + * A unique identifier for the linked span. The ID is an 8-byte array. + * + * Generated from protobuf field bytes span_id = 2; + * @param string $var + * @return $this + */ + public function setSpanId($var) + { + GPBUtil::checkString($var, False); + $this->span_id = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Location.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Location.php new file mode 100644 index 000000000..07dba7e7f --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Location.php @@ -0,0 +1,273 @@ +opentelemetry.proto.profiles.v1development.Location + */ +class Location extends \Google\Protobuf\Internal\Message +{ + /** + * Reference to mapping in Profile.mapping_table. + * It can be unset if the mapping is unknown or not applicable for + * this profile type. + * + * Generated from protobuf field optional int32 mapping_index = 1; + */ + protected $mapping_index = null; + /** + * The instruction address for this location, if available. It + * should be within [Mapping.memory_start...Mapping.memory_limit] + * for the corresponding mapping. A non-leaf address may be in the + * middle of a call instruction. It is up to display tools to find + * the beginning of the instruction if necessary. + * + * Generated from protobuf field uint64 address = 2; + */ + protected $address = 0; + /** + * Multiple line indicates this location has inlined functions, + * where the last entry represents the caller into which the + * preceding entries were inlined. + * E.g., if memcpy() is inlined into printf: + * line[0].function_name == "memcpy" + * line[1].function_name == "printf" + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3; + */ + private $line; + /** + * Provides an indication that multiple symbols map to this location's + * address, for example due to identical code folding by the linker. In that + * case the line information above represents one of the multiple + * symbols. This field must be recomputed when the symbolization state of the + * profile changes. + * + * Generated from protobuf field bool is_folded = 4; + */ + protected $is_folded = false; + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + */ + private $attribute_indices; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $mapping_index + * Reference to mapping in Profile.mapping_table. + * It can be unset if the mapping is unknown or not applicable for + * this profile type. + * @type int|string $address + * The instruction address for this location, if available. It + * should be within [Mapping.memory_start...Mapping.memory_limit] + * for the corresponding mapping. A non-leaf address may be in the + * middle of a call instruction. It is up to display tools to find + * the beginning of the instruction if necessary. + * @type \Opentelemetry\Proto\Profiles\V1development\Line[]|\Google\Protobuf\Internal\RepeatedField $line + * Multiple line indicates this location has inlined functions, + * where the last entry represents the caller into which the + * preceding entries were inlined. + * E.g., if memcpy() is inlined into printf: + * line[0].function_name == "memcpy" + * line[1].function_name == "printf" + * @type bool $is_folded + * Provides an indication that multiple symbols map to this location's + * address, for example due to identical code folding by the linker. In that + * case the line information above represents one of the multiple + * symbols. This field must be recomputed when the symbolization state of the + * profile changes. + * @type int[]|\Google\Protobuf\Internal\RepeatedField $attribute_indices + * References to attributes in Profile.attribute_table. [optional] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Reference to mapping in Profile.mapping_table. + * It can be unset if the mapping is unknown or not applicable for + * this profile type. + * + * Generated from protobuf field optional int32 mapping_index = 1; + * @return int + */ + public function getMappingIndex() + { + return isset($this->mapping_index) ? $this->mapping_index : 0; + } + + public function hasMappingIndex() + { + return isset($this->mapping_index); + } + + public function clearMappingIndex() + { + unset($this->mapping_index); + } + + /** + * Reference to mapping in Profile.mapping_table. + * It can be unset if the mapping is unknown or not applicable for + * this profile type. + * + * Generated from protobuf field optional int32 mapping_index = 1; + * @param int $var + * @return $this + */ + public function setMappingIndex($var) + { + GPBUtil::checkInt32($var); + $this->mapping_index = $var; + + return $this; + } + + /** + * The instruction address for this location, if available. It + * should be within [Mapping.memory_start...Mapping.memory_limit] + * for the corresponding mapping. A non-leaf address may be in the + * middle of a call instruction. It is up to display tools to find + * the beginning of the instruction if necessary. + * + * Generated from protobuf field uint64 address = 2; + * @return int|string + */ + public function getAddress() + { + return $this->address; + } + + /** + * The instruction address for this location, if available. It + * should be within [Mapping.memory_start...Mapping.memory_limit] + * for the corresponding mapping. A non-leaf address may be in the + * middle of a call instruction. It is up to display tools to find + * the beginning of the instruction if necessary. + * + * Generated from protobuf field uint64 address = 2; + * @param int|string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkUint64($var); + $this->address = $var; + + return $this; + } + + /** + * Multiple line indicates this location has inlined functions, + * where the last entry represents the caller into which the + * preceding entries were inlined. + * E.g., if memcpy() is inlined into printf: + * line[0].function_name == "memcpy" + * line[1].function_name == "printf" + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLine() + { + return $this->line; + } + + /** + * Multiple line indicates this location has inlined functions, + * where the last entry represents the caller into which the + * preceding entries were inlined. + * E.g., if memcpy() is inlined into printf: + * line[0].function_name == "memcpy" + * line[1].function_name == "printf" + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3; + * @param \Opentelemetry\Proto\Profiles\V1development\Line[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLine($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Line::class); + $this->line = $arr; + + return $this; + } + + /** + * Provides an indication that multiple symbols map to this location's + * address, for example due to identical code folding by the linker. In that + * case the line information above represents one of the multiple + * symbols. This field must be recomputed when the symbolization state of the + * profile changes. + * + * Generated from protobuf field bool is_folded = 4; + * @return bool + */ + public function getIsFolded() + { + return $this->is_folded; + } + + /** + * Provides an indication that multiple symbols map to this location's + * address, for example due to identical code folding by the linker. In that + * case the line information above represents one of the multiple + * symbols. This field must be recomputed when the symbolization state of the + * profile changes. + * + * Generated from protobuf field bool is_folded = 4; + * @param bool $var + * @return $this + */ + public function setIsFolded($var) + { + GPBUtil::checkBool($var); + $this->is_folded = $var; + + return $this; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeIndices() + { + return $this->attribute_indices; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeIndices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->attribute_indices = $arr; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Mapping.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Mapping.php new file mode 100644 index 000000000..aa2064494 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Mapping.php @@ -0,0 +1,327 @@ +opentelemetry.proto.profiles.v1development.Mapping + */ +class Mapping extends \Google\Protobuf\Internal\Message +{ + /** + * Address at which the binary (or DLL) is loaded into memory. + * + * Generated from protobuf field uint64 memory_start = 1; + */ + protected $memory_start = 0; + /** + * The limit of the address range occupied by this mapping. + * + * Generated from protobuf field uint64 memory_limit = 2; + */ + protected $memory_limit = 0; + /** + * Offset in the binary that corresponds to the first mapped address. + * + * Generated from protobuf field uint64 file_offset = 3; + */ + protected $file_offset = 0; + /** + * The object this entry is loaded from. This can be a filename on + * disk for the main binary and shared libraries, or virtual + * abstractions like "[vdso]". + * + * Generated from protobuf field int32 filename_strindex = 4; + */ + protected $filename_strindex = 0; + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + */ + private $attribute_indices; + /** + * The following fields indicate the resolution of symbolic info. + * + * Generated from protobuf field bool has_functions = 6; + */ + protected $has_functions = false; + /** + * Generated from protobuf field bool has_filenames = 7; + */ + protected $has_filenames = false; + /** + * Generated from protobuf field bool has_line_numbers = 8; + */ + protected $has_line_numbers = false; + /** + * Generated from protobuf field bool has_inline_frames = 9; + */ + protected $has_inline_frames = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $memory_start + * Address at which the binary (or DLL) is loaded into memory. + * @type int|string $memory_limit + * The limit of the address range occupied by this mapping. + * @type int|string $file_offset + * Offset in the binary that corresponds to the first mapped address. + * @type int $filename_strindex + * The object this entry is loaded from. This can be a filename on + * disk for the main binary and shared libraries, or virtual + * abstractions like "[vdso]". + * @type int[]|\Google\Protobuf\Internal\RepeatedField $attribute_indices + * References to attributes in Profile.attribute_table. [optional] + * @type bool $has_functions + * The following fields indicate the resolution of symbolic info. + * @type bool $has_filenames + * @type bool $has_line_numbers + * @type bool $has_inline_frames + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Address at which the binary (or DLL) is loaded into memory. + * + * Generated from protobuf field uint64 memory_start = 1; + * @return int|string + */ + public function getMemoryStart() + { + return $this->memory_start; + } + + /** + * Address at which the binary (or DLL) is loaded into memory. + * + * Generated from protobuf field uint64 memory_start = 1; + * @param int|string $var + * @return $this + */ + public function setMemoryStart($var) + { + GPBUtil::checkUint64($var); + $this->memory_start = $var; + + return $this; + } + + /** + * The limit of the address range occupied by this mapping. + * + * Generated from protobuf field uint64 memory_limit = 2; + * @return int|string + */ + public function getMemoryLimit() + { + return $this->memory_limit; + } + + /** + * The limit of the address range occupied by this mapping. + * + * Generated from protobuf field uint64 memory_limit = 2; + * @param int|string $var + * @return $this + */ + public function setMemoryLimit($var) + { + GPBUtil::checkUint64($var); + $this->memory_limit = $var; + + return $this; + } + + /** + * Offset in the binary that corresponds to the first mapped address. + * + * Generated from protobuf field uint64 file_offset = 3; + * @return int|string + */ + public function getFileOffset() + { + return $this->file_offset; + } + + /** + * Offset in the binary that corresponds to the first mapped address. + * + * Generated from protobuf field uint64 file_offset = 3; + * @param int|string $var + * @return $this + */ + public function setFileOffset($var) + { + GPBUtil::checkUint64($var); + $this->file_offset = $var; + + return $this; + } + + /** + * The object this entry is loaded from. This can be a filename on + * disk for the main binary and shared libraries, or virtual + * abstractions like "[vdso]". + * + * Generated from protobuf field int32 filename_strindex = 4; + * @return int + */ + public function getFilenameStrindex() + { + return $this->filename_strindex; + } + + /** + * The object this entry is loaded from. This can be a filename on + * disk for the main binary and shared libraries, or virtual + * abstractions like "[vdso]". + * + * Generated from protobuf field int32 filename_strindex = 4; + * @param int $var + * @return $this + */ + public function setFilenameStrindex($var) + { + GPBUtil::checkInt32($var); + $this->filename_strindex = $var; + + return $this; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeIndices() + { + return $this->attribute_indices; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 5; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeIndices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->attribute_indices = $arr; + + return $this; + } + + /** + * The following fields indicate the resolution of symbolic info. + * + * Generated from protobuf field bool has_functions = 6; + * @return bool + */ + public function getHasFunctions() + { + return $this->has_functions; + } + + /** + * The following fields indicate the resolution of symbolic info. + * + * Generated from protobuf field bool has_functions = 6; + * @param bool $var + * @return $this + */ + public function setHasFunctions($var) + { + GPBUtil::checkBool($var); + $this->has_functions = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_filenames = 7; + * @return bool + */ + public function getHasFilenames() + { + return $this->has_filenames; + } + + /** + * Generated from protobuf field bool has_filenames = 7; + * @param bool $var + * @return $this + */ + public function setHasFilenames($var) + { + GPBUtil::checkBool($var); + $this->has_filenames = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_line_numbers = 8; + * @return bool + */ + public function getHasLineNumbers() + { + return $this->has_line_numbers; + } + + /** + * Generated from protobuf field bool has_line_numbers = 8; + * @param bool $var + * @return $this + */ + public function setHasLineNumbers($var) + { + GPBUtil::checkBool($var); + $this->has_line_numbers = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_inline_frames = 9; + * @return bool + */ + public function getHasInlineFrames() + { + return $this->has_inline_frames; + } + + /** + * Generated from protobuf field bool has_inline_frames = 9; + * @param bool $var + * @return $this + */ + public function setHasInlineFrames($var) + { + GPBUtil::checkBool($var); + $this->has_inline_frames = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/PBFunction.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/PBFunction.php new file mode 100644 index 000000000..db5d9a75d --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/PBFunction.php @@ -0,0 +1,174 @@ +opentelemetry.proto.profiles.v1development.Function + */ +class PBFunction extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the function, in human-readable form if available. + * + * Generated from protobuf field int32 name_strindex = 1; + */ + protected $name_strindex = 0; + /** + * Name of the function, as identified by the system. + * For instance, it can be a C++ mangled name. + * + * Generated from protobuf field int32 system_name_strindex = 2; + */ + protected $system_name_strindex = 0; + /** + * Source file containing the function. + * + * Generated from protobuf field int32 filename_strindex = 3; + */ + protected $filename_strindex = 0; + /** + * Line number in source file. + * + * Generated from protobuf field int64 start_line = 4; + */ + protected $start_line = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $name_strindex + * Name of the function, in human-readable form if available. + * @type int $system_name_strindex + * Name of the function, as identified by the system. + * For instance, it can be a C++ mangled name. + * @type int $filename_strindex + * Source file containing the function. + * @type int|string $start_line + * Line number in source file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Name of the function, in human-readable form if available. + * + * Generated from protobuf field int32 name_strindex = 1; + * @return int + */ + public function getNameStrindex() + { + return $this->name_strindex; + } + + /** + * Name of the function, in human-readable form if available. + * + * Generated from protobuf field int32 name_strindex = 1; + * @param int $var + * @return $this + */ + public function setNameStrindex($var) + { + GPBUtil::checkInt32($var); + $this->name_strindex = $var; + + return $this; + } + + /** + * Name of the function, as identified by the system. + * For instance, it can be a C++ mangled name. + * + * Generated from protobuf field int32 system_name_strindex = 2; + * @return int + */ + public function getSystemNameStrindex() + { + return $this->system_name_strindex; + } + + /** + * Name of the function, as identified by the system. + * For instance, it can be a C++ mangled name. + * + * Generated from protobuf field int32 system_name_strindex = 2; + * @param int $var + * @return $this + */ + public function setSystemNameStrindex($var) + { + GPBUtil::checkInt32($var); + $this->system_name_strindex = $var; + + return $this; + } + + /** + * Source file containing the function. + * + * Generated from protobuf field int32 filename_strindex = 3; + * @return int + */ + public function getFilenameStrindex() + { + return $this->filename_strindex; + } + + /** + * Source file containing the function. + * + * Generated from protobuf field int32 filename_strindex = 3; + * @param int $var + * @return $this + */ + public function setFilenameStrindex($var) + { + GPBUtil::checkInt32($var); + $this->filename_strindex = $var; + + return $this; + } + + /** + * Line number in source file. + * + * Generated from protobuf field int64 start_line = 4; + * @return int|string + */ + public function getStartLine() + { + return $this->start_line; + } + + /** + * Line number in source file. + * + * Generated from protobuf field int64 start_line = 4; + * @param int|string $var + * @return $this + */ + public function setStartLine($var) + { + GPBUtil::checkInt64($var); + $this->start_line = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Profile.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Profile.php new file mode 100644 index 000000000..0a9a05356 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Profile.php @@ -0,0 +1,906 @@ +opentelemetry.proto.profiles.v1development.Profile + */ +class Profile extends \Google\Protobuf\Internal\Message +{ + /** + * A description of the samples associated with each Sample.value. + * For a cpu profile this might be: + * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] + * For a heap profile, this might be: + * [["allocations","count"], ["space","bytes"]], + * If one of the values represents the number of events represented + * by the sample, by convention it should be at index 0 and use + * sample_type.unit == "count". + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; + */ + private $sample_type; + /** + * The set of samples recorded in this profile. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; + */ + private $sample; + /** + * Mapping from address ranges to the image/binary/library mapped + * into that address range. mapping[0] will be the main binary. + * If multiple binaries contribute to the Profile and no main + * binary can be identified, mapping[0] has no special meaning. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; + */ + private $mapping_table; + /** + * Locations referenced by samples via location_indices. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; + */ + private $location_table; + /** + * Array of locations referenced by samples. + * + * Generated from protobuf field repeated int32 location_indices = 5; + */ + private $location_indices; + /** + * Functions referenced by locations. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; + */ + private $function_table; + /** + * Lookup table for attributes. + * + * Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; + */ + private $attribute_table; + /** + * Represents a mapping between Attribute Keys and Units. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; + */ + private $attribute_units; + /** + * Lookup table for links. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; + */ + private $link_table; + /** + * A common table for strings referenced by various messages. + * string_table[0] must always be "". + * + * Generated from protobuf field repeated string string_table = 10; + */ + private $string_table; + /** + * Time of collection (UTC) represented as nanoseconds past the epoch. + * + * Generated from protobuf field int64 time_nanos = 11; + */ + protected $time_nanos = 0; + /** + * Duration of the profile, if a duration makes sense. + * + * Generated from protobuf field int64 duration_nanos = 12; + */ + protected $duration_nanos = 0; + /** + * The kind of events between sampled occurrences. + * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] + * + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; + */ + protected $period_type = null; + /** + * The number of events between sampled occurrences. + * + * Generated from protobuf field int64 period = 14; + */ + protected $period = 0; + /** + * Free-form text associated with the profile. The text is displayed as is + * to the user by the tools that read profiles (e.g. by pprof). This field + * should not be used to store any machine-readable information, it is only + * for human-friendly content. The profile must stay functional if this field + * is cleaned. + * + * Generated from protobuf field repeated int32 comment_strindices = 15; + */ + private $comment_strindices; + /** + * Index into the string table of the type of the preferred sample + * value. If unset, clients should default to the last sample value. + * + * Generated from protobuf field int32 default_sample_type_strindex = 16; + */ + protected $default_sample_type_strindex = 0; + /** + * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with + * all zeroes is considered invalid. + * This field is required. + * + * Generated from protobuf field bytes profile_id = 17; + */ + protected $profile_id = ''; + /** + * dropped_attributes_count is the number of attributes that were discarded. Attributes + * can be discarded because their keys are too long or because there are too many + * attributes. If this value is 0, then no attributes were dropped. + * + * Generated from protobuf field uint32 dropped_attributes_count = 19; + */ + protected $dropped_attributes_count = 0; + /** + * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] + * + * Generated from protobuf field string original_payload_format = 20; + */ + protected $original_payload_format = ''; + /** + * Original payload can be stored in this field. This can be useful for users who want to get the original payload. + * Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. + * Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. + * If the original payload is in pprof format, it SHOULD not be included in this field. + * The field is optional, however if it is present then equivalent converted data should be populated in other fields + * of this message as far as is practicable. + * + * Generated from protobuf field bytes original_payload = 21; + */ + protected $original_payload = ''; + /** + * References to attributes in attribute_table. [optional] + * It is a collection of key/value pairs. Note, global attributes + * like server name can be set using the resource API. Examples of attributes: + * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" + * "/http/server_latency": 300 + * "abc.com/myattribute": true + * "abc.com/score": 10.239 + * The OpenTelemetry API specification further restricts the allowed value types: + * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute + * Attribute keys MUST be unique (it is not allowed to have more than one + * attribute with the same key). + * + * Generated from protobuf field repeated int32 attribute_indices = 22; + */ + private $attribute_indices; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Profiles\V1development\ValueType[]|\Google\Protobuf\Internal\RepeatedField $sample_type + * A description of the samples associated with each Sample.value. + * For a cpu profile this might be: + * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] + * For a heap profile, this might be: + * [["allocations","count"], ["space","bytes"]], + * If one of the values represents the number of events represented + * by the sample, by convention it should be at index 0 and use + * sample_type.unit == "count". + * @type \Opentelemetry\Proto\Profiles\V1development\Sample[]|\Google\Protobuf\Internal\RepeatedField $sample + * The set of samples recorded in this profile. + * @type \Opentelemetry\Proto\Profiles\V1development\Mapping[]|\Google\Protobuf\Internal\RepeatedField $mapping_table + * Mapping from address ranges to the image/binary/library mapped + * into that address range. mapping[0] will be the main binary. + * If multiple binaries contribute to the Profile and no main + * binary can be identified, mapping[0] has no special meaning. + * @type \Opentelemetry\Proto\Profiles\V1development\Location[]|\Google\Protobuf\Internal\RepeatedField $location_table + * Locations referenced by samples via location_indices. + * @type int[]|\Google\Protobuf\Internal\RepeatedField $location_indices + * Array of locations referenced by samples. + * @type \Opentelemetry\Proto\Profiles\V1development\PBFunction[]|\Google\Protobuf\Internal\RepeatedField $function_table + * Functions referenced by locations. + * @type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $attribute_table + * Lookup table for attributes. + * @type \Opentelemetry\Proto\Profiles\V1development\AttributeUnit[]|\Google\Protobuf\Internal\RepeatedField $attribute_units + * Represents a mapping between Attribute Keys and Units. + * @type \Opentelemetry\Proto\Profiles\V1development\Link[]|\Google\Protobuf\Internal\RepeatedField $link_table + * Lookup table for links. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $string_table + * A common table for strings referenced by various messages. + * string_table[0] must always be "". + * @type int|string $time_nanos + * Time of collection (UTC) represented as nanoseconds past the epoch. + * @type int|string $duration_nanos + * Duration of the profile, if a duration makes sense. + * @type \Opentelemetry\Proto\Profiles\V1development\ValueType $period_type + * The kind of events between sampled occurrences. + * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] + * @type int|string $period + * The number of events between sampled occurrences. + * @type int[]|\Google\Protobuf\Internal\RepeatedField $comment_strindices + * Free-form text associated with the profile. The text is displayed as is + * to the user by the tools that read profiles (e.g. by pprof). This field + * should not be used to store any machine-readable information, it is only + * for human-friendly content. The profile must stay functional if this field + * is cleaned. + * @type int $default_sample_type_strindex + * Index into the string table of the type of the preferred sample + * value. If unset, clients should default to the last sample value. + * @type string $profile_id + * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with + * all zeroes is considered invalid. + * This field is required. + * @type int $dropped_attributes_count + * dropped_attributes_count is the number of attributes that were discarded. Attributes + * can be discarded because their keys are too long or because there are too many + * attributes. If this value is 0, then no attributes were dropped. + * @type string $original_payload_format + * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] + * @type string $original_payload + * Original payload can be stored in this field. This can be useful for users who want to get the original payload. + * Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. + * Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. + * If the original payload is in pprof format, it SHOULD not be included in this field. + * The field is optional, however if it is present then equivalent converted data should be populated in other fields + * of this message as far as is practicable. + * @type int[]|\Google\Protobuf\Internal\RepeatedField $attribute_indices + * References to attributes in attribute_table. [optional] + * It is a collection of key/value pairs. Note, global attributes + * like server name can be set using the resource API. Examples of attributes: + * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" + * "/http/server_latency": 300 + * "abc.com/myattribute": true + * "abc.com/score": 10.239 + * The OpenTelemetry API specification further restricts the allowed value types: + * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute + * Attribute keys MUST be unique (it is not allowed to have more than one + * attribute with the same key). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * A description of the samples associated with each Sample.value. + * For a cpu profile this might be: + * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] + * For a heap profile, this might be: + * [["allocations","count"], ["space","bytes"]], + * If one of the values represents the number of events represented + * by the sample, by convention it should be at index 0 and use + * sample_type.unit == "count". + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSampleType() + { + return $this->sample_type; + } + + /** + * A description of the samples associated with each Sample.value. + * For a cpu profile this might be: + * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] + * For a heap profile, this might be: + * [["allocations","count"], ["space","bytes"]], + * If one of the values represents the number of events represented + * by the sample, by convention it should be at index 0 and use + * sample_type.unit == "count". + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; + * @param \Opentelemetry\Proto\Profiles\V1development\ValueType[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSampleType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\ValueType::class); + $this->sample_type = $arr; + + return $this; + } + + /** + * The set of samples recorded in this profile. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSample() + { + return $this->sample; + } + + /** + * The set of samples recorded in this profile. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; + * @param \Opentelemetry\Proto\Profiles\V1development\Sample[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSample($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Sample::class); + $this->sample = $arr; + + return $this; + } + + /** + * Mapping from address ranges to the image/binary/library mapped + * into that address range. mapping[0] will be the main binary. + * If multiple binaries contribute to the Profile and no main + * binary can be identified, mapping[0] has no special meaning. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMappingTable() + { + return $this->mapping_table; + } + + /** + * Mapping from address ranges to the image/binary/library mapped + * into that address range. mapping[0] will be the main binary. + * If multiple binaries contribute to the Profile and no main + * binary can be identified, mapping[0] has no special meaning. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; + * @param \Opentelemetry\Proto\Profiles\V1development\Mapping[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMappingTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Mapping::class); + $this->mapping_table = $arr; + + return $this; + } + + /** + * Locations referenced by samples via location_indices. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocationTable() + { + return $this->location_table; + } + + /** + * Locations referenced by samples via location_indices. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; + * @param \Opentelemetry\Proto\Profiles\V1development\Location[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocationTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Location::class); + $this->location_table = $arr; + + return $this; + } + + /** + * Array of locations referenced by samples. + * + * Generated from protobuf field repeated int32 location_indices = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocationIndices() + { + return $this->location_indices; + } + + /** + * Array of locations referenced by samples. + * + * Generated from protobuf field repeated int32 location_indices = 5; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocationIndices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->location_indices = $arr; + + return $this; + } + + /** + * Functions referenced by locations. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFunctionTable() + { + return $this->function_table; + } + + /** + * Functions referenced by locations. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; + * @param \Opentelemetry\Proto\Profiles\V1development\PBFunction[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFunctionTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\PBFunction::class); + $this->function_table = $arr; + + return $this; + } + + /** + * Lookup table for attributes. + * + * Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeTable() + { + return $this->attribute_table; + } + + /** + * Lookup table for attributes. + * + * Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; + * @param \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Common\V1\KeyValue::class); + $this->attribute_table = $arr; + + return $this; + } + + /** + * Represents a mapping between Attribute Keys and Units. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeUnits() + { + return $this->attribute_units; + } + + /** + * Represents a mapping between Attribute Keys and Units. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; + * @param \Opentelemetry\Proto\Profiles\V1development\AttributeUnit[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeUnits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\AttributeUnit::class); + $this->attribute_units = $arr; + + return $this; + } + + /** + * Lookup table for links. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinkTable() + { + return $this->link_table; + } + + /** + * Lookup table for links. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; + * @param \Opentelemetry\Proto\Profiles\V1development\Link[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinkTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Link::class); + $this->link_table = $arr; + + return $this; + } + + /** + * A common table for strings referenced by various messages. + * string_table[0] must always be "". + * + * Generated from protobuf field repeated string string_table = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStringTable() + { + return $this->string_table; + } + + /** + * A common table for strings referenced by various messages. + * string_table[0] must always be "". + * + * Generated from protobuf field repeated string string_table = 10; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStringTable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->string_table = $arr; + + return $this; + } + + /** + * Time of collection (UTC) represented as nanoseconds past the epoch. + * + * Generated from protobuf field int64 time_nanos = 11; + * @return int|string + */ + public function getTimeNanos() + { + return $this->time_nanos; + } + + /** + * Time of collection (UTC) represented as nanoseconds past the epoch. + * + * Generated from protobuf field int64 time_nanos = 11; + * @param int|string $var + * @return $this + */ + public function setTimeNanos($var) + { + GPBUtil::checkInt64($var); + $this->time_nanos = $var; + + return $this; + } + + /** + * Duration of the profile, if a duration makes sense. + * + * Generated from protobuf field int64 duration_nanos = 12; + * @return int|string + */ + public function getDurationNanos() + { + return $this->duration_nanos; + } + + /** + * Duration of the profile, if a duration makes sense. + * + * Generated from protobuf field int64 duration_nanos = 12; + * @param int|string $var + * @return $this + */ + public function setDurationNanos($var) + { + GPBUtil::checkInt64($var); + $this->duration_nanos = $var; + + return $this; + } + + /** + * The kind of events between sampled occurrences. + * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] + * + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; + * @return \Opentelemetry\Proto\Profiles\V1development\ValueType|null + */ + public function getPeriodType() + { + return $this->period_type; + } + + public function hasPeriodType() + { + return isset($this->period_type); + } + + public function clearPeriodType() + { + unset($this->period_type); + } + + /** + * The kind of events between sampled occurrences. + * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] + * + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; + * @param \Opentelemetry\Proto\Profiles\V1development\ValueType $var + * @return $this + */ + public function setPeriodType($var) + { + GPBUtil::checkMessage($var, \Opentelemetry\Proto\Profiles\V1development\ValueType::class); + $this->period_type = $var; + + return $this; + } + + /** + * The number of events between sampled occurrences. + * + * Generated from protobuf field int64 period = 14; + * @return int|string + */ + public function getPeriod() + { + return $this->period; + } + + /** + * The number of events between sampled occurrences. + * + * Generated from protobuf field int64 period = 14; + * @param int|string $var + * @return $this + */ + public function setPeriod($var) + { + GPBUtil::checkInt64($var); + $this->period = $var; + + return $this; + } + + /** + * Free-form text associated with the profile. The text is displayed as is + * to the user by the tools that read profiles (e.g. by pprof). This field + * should not be used to store any machine-readable information, it is only + * for human-friendly content. The profile must stay functional if this field + * is cleaned. + * + * Generated from protobuf field repeated int32 comment_strindices = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCommentStrindices() + { + return $this->comment_strindices; + } + + /** + * Free-form text associated with the profile. The text is displayed as is + * to the user by the tools that read profiles (e.g. by pprof). This field + * should not be used to store any machine-readable information, it is only + * for human-friendly content. The profile must stay functional if this field + * is cleaned. + * + * Generated from protobuf field repeated int32 comment_strindices = 15; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCommentStrindices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->comment_strindices = $arr; + + return $this; + } + + /** + * Index into the string table of the type of the preferred sample + * value. If unset, clients should default to the last sample value. + * + * Generated from protobuf field int32 default_sample_type_strindex = 16; + * @return int + */ + public function getDefaultSampleTypeStrindex() + { + return $this->default_sample_type_strindex; + } + + /** + * Index into the string table of the type of the preferred sample + * value. If unset, clients should default to the last sample value. + * + * Generated from protobuf field int32 default_sample_type_strindex = 16; + * @param int $var + * @return $this + */ + public function setDefaultSampleTypeStrindex($var) + { + GPBUtil::checkInt32($var); + $this->default_sample_type_strindex = $var; + + return $this; + } + + /** + * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with + * all zeroes is considered invalid. + * This field is required. + * + * Generated from protobuf field bytes profile_id = 17; + * @return string + */ + public function getProfileId() + { + return $this->profile_id; + } + + /** + * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with + * all zeroes is considered invalid. + * This field is required. + * + * Generated from protobuf field bytes profile_id = 17; + * @param string $var + * @return $this + */ + public function setProfileId($var) + { + GPBUtil::checkString($var, False); + $this->profile_id = $var; + + return $this; + } + + /** + * dropped_attributes_count is the number of attributes that were discarded. Attributes + * can be discarded because their keys are too long or because there are too many + * attributes. If this value is 0, then no attributes were dropped. + * + * Generated from protobuf field uint32 dropped_attributes_count = 19; + * @return int + */ + public function getDroppedAttributesCount() + { + return $this->dropped_attributes_count; + } + + /** + * dropped_attributes_count is the number of attributes that were discarded. Attributes + * can be discarded because their keys are too long or because there are too many + * attributes. If this value is 0, then no attributes were dropped. + * + * Generated from protobuf field uint32 dropped_attributes_count = 19; + * @param int $var + * @return $this + */ + public function setDroppedAttributesCount($var) + { + GPBUtil::checkUint32($var); + $this->dropped_attributes_count = $var; + + return $this; + } + + /** + * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] + * + * Generated from protobuf field string original_payload_format = 20; + * @return string + */ + public function getOriginalPayloadFormat() + { + return $this->original_payload_format; + } + + /** + * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] + * + * Generated from protobuf field string original_payload_format = 20; + * @param string $var + * @return $this + */ + public function setOriginalPayloadFormat($var) + { + GPBUtil::checkString($var, True); + $this->original_payload_format = $var; + + return $this; + } + + /** + * Original payload can be stored in this field. This can be useful for users who want to get the original payload. + * Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. + * Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. + * If the original payload is in pprof format, it SHOULD not be included in this field. + * The field is optional, however if it is present then equivalent converted data should be populated in other fields + * of this message as far as is practicable. + * + * Generated from protobuf field bytes original_payload = 21; + * @return string + */ + public function getOriginalPayload() + { + return $this->original_payload; + } + + /** + * Original payload can be stored in this field. This can be useful for users who want to get the original payload. + * Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. + * Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. + * If the original payload is in pprof format, it SHOULD not be included in this field. + * The field is optional, however if it is present then equivalent converted data should be populated in other fields + * of this message as far as is practicable. + * + * Generated from protobuf field bytes original_payload = 21; + * @param string $var + * @return $this + */ + public function setOriginalPayload($var) + { + GPBUtil::checkString($var, False); + $this->original_payload = $var; + + return $this; + } + + /** + * References to attributes in attribute_table. [optional] + * It is a collection of key/value pairs. Note, global attributes + * like server name can be set using the resource API. Examples of attributes: + * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" + * "/http/server_latency": 300 + * "abc.com/myattribute": true + * "abc.com/score": 10.239 + * The OpenTelemetry API specification further restricts the allowed value types: + * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute + * Attribute keys MUST be unique (it is not allowed to have more than one + * attribute with the same key). + * + * Generated from protobuf field repeated int32 attribute_indices = 22; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeIndices() + { + return $this->attribute_indices; + } + + /** + * References to attributes in attribute_table. [optional] + * It is a collection of key/value pairs. Note, global attributes + * like server name can be set using the resource API. Examples of attributes: + * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" + * "/http/server_latency": 300 + * "abc.com/myattribute": true + * "abc.com/score": 10.239 + * The OpenTelemetry API specification further restricts the allowed value types: + * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute + * Attribute keys MUST be unique (it is not allowed to have more than one + * attribute with the same key). + * + * Generated from protobuf field repeated int32 attribute_indices = 22; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeIndices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->attribute_indices = $arr; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/ProfilesData.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ProfilesData.php new file mode 100644 index 000000000..272be9f6b --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ProfilesData.php @@ -0,0 +1,90 @@ +opentelemetry.proto.profiles.v1development.ProfilesData + */ +class ProfilesData extends \Google\Protobuf\Internal\Message +{ + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain + * one element. Intermediary nodes that receive data from multiple origins + * typically batch the data before forwarding further and in that case this + * array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + */ + private $resource_profiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles[]|\Google\Protobuf\Internal\RepeatedField $resource_profiles + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain + * one element. Intermediary nodes that receive data from multiple origins + * typically batch the data before forwarding further and in that case this + * array will contain multiple elements. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain + * one element. Intermediary nodes that receive data from multiple origins + * typically batch the data before forwarding further and in that case this + * array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceProfiles() + { + return $this->resource_profiles; + } + + /** + * An array of ResourceProfiles. + * For data coming from a single resource this array will typically contain + * one element. Intermediary nodes that receive data from multiple origins + * typically batch the data before forwarding further and in that case this + * array will contain multiple elements. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1; + * @param \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\ResourceProfiles::class); + $this->resource_profiles = $arr; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/ResourceProfiles.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ResourceProfiles.php new file mode 100644 index 000000000..6aad3c04b --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ResourceProfiles.php @@ -0,0 +1,169 @@ +opentelemetry.proto.profiles.v1development.ResourceProfiles + */ +class ResourceProfiles extends \Google\Protobuf\Internal\Message +{ + /** + * The resource for the profiles in this message. + * If this field is not set then no resource info is known. + * + * Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1; + */ + protected $resource = null; + /** + * A list of ScopeProfiles that originate from a resource. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; + */ + private $scope_profiles; + /** + * The Schema URL, if known. This is the identifier of the Schema that the resource data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to the data in the "resource" field. It does not apply + * to the data in the "scope_profiles" field which have their own schema_url field. + * + * Generated from protobuf field string schema_url = 3; + */ + protected $schema_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Resource\V1\Resource $resource + * The resource for the profiles in this message. + * If this field is not set then no resource info is known. + * @type \Opentelemetry\Proto\Profiles\V1development\ScopeProfiles[]|\Google\Protobuf\Internal\RepeatedField $scope_profiles + * A list of ScopeProfiles that originate from a resource. + * @type string $schema_url + * The Schema URL, if known. This is the identifier of the Schema that the resource data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to the data in the "resource" field. It does not apply + * to the data in the "scope_profiles" field which have their own schema_url field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * The resource for the profiles in this message. + * If this field is not set then no resource info is known. + * + * Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1; + * @return \Opentelemetry\Proto\Resource\V1\Resource|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * The resource for the profiles in this message. + * If this field is not set then no resource info is known. + * + * Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1; + * @param \Opentelemetry\Proto\Resource\V1\Resource $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Opentelemetry\Proto\Resource\V1\Resource::class); + $this->resource = $var; + + return $this; + } + + /** + * A list of ScopeProfiles that originate from a resource. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getScopeProfiles() + { + return $this->scope_profiles; + } + + /** + * A list of ScopeProfiles that originate from a resource. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; + * @param \Opentelemetry\Proto\Profiles\V1development\ScopeProfiles[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setScopeProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\ScopeProfiles::class); + $this->scope_profiles = $arr; + + return $this; + } + + /** + * The Schema URL, if known. This is the identifier of the Schema that the resource data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to the data in the "resource" field. It does not apply + * to the data in the "scope_profiles" field which have their own schema_url field. + * + * Generated from protobuf field string schema_url = 3; + * @return string + */ + public function getSchemaUrl() + { + return $this->schema_url; + } + + /** + * The Schema URL, if known. This is the identifier of the Schema that the resource data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to the data in the "resource" field. It does not apply + * to the data in the "scope_profiles" field which have their own schema_url field. + * + * Generated from protobuf field string schema_url = 3; + * @param string $var + * @return $this + */ + public function setSchemaUrl($var) + { + GPBUtil::checkString($var, True); + $this->schema_url = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/Sample.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Sample.php new file mode 100644 index 000000000..af733c538 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/Sample.php @@ -0,0 +1,278 @@ +opentelemetry.proto.profiles.v1development.Sample + */ +class Sample extends \Google\Protobuf\Internal\Message +{ + /** + * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices. + * + * Generated from protobuf field int32 locations_start_index = 1; + */ + protected $locations_start_index = 0; + /** + * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices. + * Supersedes location_index. + * + * Generated from protobuf field int32 locations_length = 2; + */ + protected $locations_length = 0; + /** + * The type and unit of each value is defined by the corresponding + * entry in Profile.sample_type. All samples must have the same + * number of values, the same as the length of Profile.sample_type. + * When aggregating multiple samples into a single sample, the + * result has a list of values that is the element-wise sum of the + * lists of the originals. + * + * Generated from protobuf field repeated int64 value = 3; + */ + private $value; + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 4; + */ + private $attribute_indices; + /** + * Reference to link in Profile.link_table. [optional] + * + * Generated from protobuf field optional int32 link_index = 5; + */ + protected $link_index = null; + /** + * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected + * to fall within the Profile's time range. [optional] + * + * Generated from protobuf field repeated uint64 timestamps_unix_nano = 6; + */ + private $timestamps_unix_nano; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $locations_start_index + * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices. + * @type int $locations_length + * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices. + * Supersedes location_index. + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $value + * The type and unit of each value is defined by the corresponding + * entry in Profile.sample_type. All samples must have the same + * number of values, the same as the length of Profile.sample_type. + * When aggregating multiple samples into a single sample, the + * result has a list of values that is the element-wise sum of the + * lists of the originals. + * @type int[]|\Google\Protobuf\Internal\RepeatedField $attribute_indices + * References to attributes in Profile.attribute_table. [optional] + * @type int $link_index + * Reference to link in Profile.link_table. [optional] + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $timestamps_unix_nano + * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected + * to fall within the Profile's time range. [optional] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices. + * + * Generated from protobuf field int32 locations_start_index = 1; + * @return int + */ + public function getLocationsStartIndex() + { + return $this->locations_start_index; + } + + /** + * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices. + * + * Generated from protobuf field int32 locations_start_index = 1; + * @param int $var + * @return $this + */ + public function setLocationsStartIndex($var) + { + GPBUtil::checkInt32($var); + $this->locations_start_index = $var; + + return $this; + } + + /** + * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices. + * Supersedes location_index. + * + * Generated from protobuf field int32 locations_length = 2; + * @return int + */ + public function getLocationsLength() + { + return $this->locations_length; + } + + /** + * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices. + * Supersedes location_index. + * + * Generated from protobuf field int32 locations_length = 2; + * @param int $var + * @return $this + */ + public function setLocationsLength($var) + { + GPBUtil::checkInt32($var); + $this->locations_length = $var; + + return $this; + } + + /** + * The type and unit of each value is defined by the corresponding + * entry in Profile.sample_type. All samples must have the same + * number of values, the same as the length of Profile.sample_type. + * When aggregating multiple samples into a single sample, the + * result has a list of values that is the element-wise sum of the + * lists of the originals. + * + * Generated from protobuf field repeated int64 value = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValue() + { + return $this->value; + } + + /** + * The type and unit of each value is defined by the corresponding + * entry in Profile.sample_type. All samples must have the same + * number of values, the same as the length of Profile.sample_type. + * When aggregating multiple samples into a single sample, the + * result has a list of values that is the element-wise sum of the + * lists of the originals. + * + * Generated from protobuf field repeated int64 value = 3; + * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValue($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->value = $arr; + + return $this; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributeIndices() + { + return $this->attribute_indices; + } + + /** + * References to attributes in Profile.attribute_table. [optional] + * + * Generated from protobuf field repeated int32 attribute_indices = 4; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributeIndices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->attribute_indices = $arr; + + return $this; + } + + /** + * Reference to link in Profile.link_table. [optional] + * + * Generated from protobuf field optional int32 link_index = 5; + * @return int + */ + public function getLinkIndex() + { + return isset($this->link_index) ? $this->link_index : 0; + } + + public function hasLinkIndex() + { + return isset($this->link_index); + } + + public function clearLinkIndex() + { + unset($this->link_index); + } + + /** + * Reference to link in Profile.link_table. [optional] + * + * Generated from protobuf field optional int32 link_index = 5; + * @param int $var + * @return $this + */ + public function setLinkIndex($var) + { + GPBUtil::checkInt32($var); + $this->link_index = $var; + + return $this; + } + + /** + * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected + * to fall within the Profile's time range. [optional] + * + * Generated from protobuf field repeated uint64 timestamps_unix_nano = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTimestampsUnixNano() + { + return $this->timestamps_unix_nano; + } + + /** + * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected + * to fall within the Profile's time range. [optional] + * + * Generated from protobuf field repeated uint64 timestamps_unix_nano = 6; + * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTimestampsUnixNano($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); + $this->timestamps_unix_nano = $arr; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/ScopeProfiles.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ScopeProfiles.php new file mode 100644 index 000000000..220cc3f83 --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ScopeProfiles.php @@ -0,0 +1,169 @@ +opentelemetry.proto.profiles.v1development.ScopeProfiles + */ +class ScopeProfiles extends \Google\Protobuf\Internal\Message +{ + /** + * The instrumentation scope information for the profiles in this message. + * Semantically when InstrumentationScope isn't set, it is equivalent with + * an empty instrumentation scope name (unknown). + * + * Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; + */ + protected $scope = null; + /** + * A list of Profiles that originate from an instrumentation scope. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2; + */ + private $profiles; + /** + * The Schema URL, if known. This is the identifier of the Schema that the profile data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to all profiles in the "profiles" field. + * + * Generated from protobuf field string schema_url = 3; + */ + protected $schema_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Opentelemetry\Proto\Common\V1\InstrumentationScope $scope + * The instrumentation scope information for the profiles in this message. + * Semantically when InstrumentationScope isn't set, it is equivalent with + * an empty instrumentation scope name (unknown). + * @type \Opentelemetry\Proto\Profiles\V1development\Profile[]|\Google\Protobuf\Internal\RepeatedField $profiles + * A list of Profiles that originate from an instrumentation scope. + * @type string $schema_url + * The Schema URL, if known. This is the identifier of the Schema that the profile data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to all profiles in the "profiles" field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * The instrumentation scope information for the profiles in this message. + * Semantically when InstrumentationScope isn't set, it is equivalent with + * an empty instrumentation scope name (unknown). + * + * Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; + * @return \Opentelemetry\Proto\Common\V1\InstrumentationScope|null + */ + public function getScope() + { + return $this->scope; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * The instrumentation scope information for the profiles in this message. + * Semantically when InstrumentationScope isn't set, it is equivalent with + * an empty instrumentation scope name (unknown). + * + * Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; + * @param \Opentelemetry\Proto\Common\V1\InstrumentationScope $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkMessage($var, \Opentelemetry\Proto\Common\V1\InstrumentationScope::class); + $this->scope = $var; + + return $this; + } + + /** + * A list of Profiles that originate from an instrumentation scope. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProfiles() + { + return $this->profiles; + } + + /** + * A list of Profiles that originate from an instrumentation scope. + * + * Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2; + * @param \Opentelemetry\Proto\Profiles\V1development\Profile[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Profiles\V1development\Profile::class); + $this->profiles = $arr; + + return $this; + } + + /** + * The Schema URL, if known. This is the identifier of the Schema that the profile data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to all profiles in the "profiles" field. + * + * Generated from protobuf field string schema_url = 3; + * @return string + */ + public function getSchemaUrl() + { + return $this->schema_url; + } + + /** + * The Schema URL, if known. This is the identifier of the Schema that the profile data + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see + * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + * This schema_url applies to all profiles in the "profiles" field. + * + * Generated from protobuf field string schema_url = 3; + * @param string $var + * @return $this + */ + public function setSchemaUrl($var) + { + GPBUtil::checkString($var, True); + $this->schema_url = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Profiles/V1development/ValueType.php b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ValueType.php new file mode 100644 index 000000000..913b7ca6b --- /dev/null +++ b/proto/otel/Opentelemetry/Proto/Profiles/V1development/ValueType.php @@ -0,0 +1,128 @@ +opentelemetry.proto.profiles.v1development.ValueType + */ +class ValueType extends \Google\Protobuf\Internal\Message +{ + /** + * Index into string table. + * + * Generated from protobuf field int32 type_strindex = 1; + */ + protected $type_strindex = 0; + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + */ + protected $unit_strindex = 0; + /** + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.AggregationTemporality aggregation_temporality = 3; + */ + protected $aggregation_temporality = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type_strindex + * Index into string table. + * @type int $unit_strindex + * Index into string table. + * @type int $aggregation_temporality + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Profiles\V1Development\Profiles::initOnce(); + parent::__construct($data); + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 type_strindex = 1; + * @return int + */ + public function getTypeStrindex() + { + return $this->type_strindex; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 type_strindex = 1; + * @param int $var + * @return $this + */ + public function setTypeStrindex($var) + { + GPBUtil::checkInt32($var); + $this->type_strindex = $var; + + return $this; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + * @return int + */ + public function getUnitStrindex() + { + return $this->unit_strindex; + } + + /** + * Index into string table. + * + * Generated from protobuf field int32 unit_strindex = 2; + * @param int $var + * @return $this + */ + public function setUnitStrindex($var) + { + GPBUtil::checkInt32($var); + $this->unit_strindex = $var; + + return $this; + } + + /** + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.AggregationTemporality aggregation_temporality = 3; + * @return int + */ + public function getAggregationTemporality() + { + return $this->aggregation_temporality; + } + + /** + * Generated from protobuf field .opentelemetry.proto.profiles.v1development.AggregationTemporality aggregation_temporality = 3; + * @param int $var + * @return $this + */ + public function setAggregationTemporality($var) + { + GPBUtil::checkEnum($var, \Opentelemetry\Proto\Profiles\V1development\AggregationTemporality::class); + $this->aggregation_temporality = $var; + + return $this; + } + +} + diff --git a/proto/otel/Opentelemetry/Proto/Trace/V1/ResourceSpans.php b/proto/otel/Opentelemetry/Proto/Trace/V1/ResourceSpans.php index efaa375c2..e27800843 100644 --- a/proto/otel/Opentelemetry/Proto/Trace/V1/ResourceSpans.php +++ b/proto/otel/Opentelemetry/Proto/Trace/V1/ResourceSpans.php @@ -30,7 +30,8 @@ class ResourceSpans extends \Google\Protobuf\Internal\Message private $scope_spans; /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_spans" field which have their own schema_url field. @@ -52,7 +53,8 @@ class ResourceSpans extends \Google\Protobuf\Internal\Message * A list of ScopeSpans that originate from a resource. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_spans" field which have their own schema_url field. @@ -129,7 +131,8 @@ public function setScopeSpans($var) /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_spans" field which have their own schema_url field. @@ -144,7 +147,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the resource data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to the data in the "resource" field. It does not apply * to the data in the "scope_spans" field which have their own schema_url field. diff --git a/proto/otel/Opentelemetry/Proto/Trace/V1/ScopeSpans.php b/proto/otel/Opentelemetry/Proto/Trace/V1/ScopeSpans.php index 0565539e2..4b635a79b 100644 --- a/proto/otel/Opentelemetry/Proto/Trace/V1/ScopeSpans.php +++ b/proto/otel/Opentelemetry/Proto/Trace/V1/ScopeSpans.php @@ -31,7 +31,8 @@ class ScopeSpans extends \Google\Protobuf\Internal\Message private $spans; /** * The Schema URL, if known. This is the identifier of the Schema that the span data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all spans and span events in the "spans" field. * @@ -53,7 +54,8 @@ class ScopeSpans extends \Google\Protobuf\Internal\Message * A list of Spans that originate from an instrumentation scope. * @type string $schema_url * The Schema URL, if known. This is the identifier of the Schema that the span data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all spans and span events in the "spans" field. * } @@ -131,7 +133,8 @@ public function setSpans($var) /** * The Schema URL, if known. This is the identifier of the Schema that the span data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all spans and span events in the "spans" field. * @@ -145,7 +148,8 @@ public function getSchemaUrl() /** * The Schema URL, if known. This is the identifier of the Schema that the span data - * is recorded in. To learn more about Schema URL see + * is recorded in. Notably, the last part of the URL path is the version number of the + * schema: http[s]://server[:port]/path/. To learn more about Schema URL see * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url * This schema_url applies to all spans and span events in the "spans" field. * diff --git a/proto/otel/VERSION b/proto/otel/VERSION index 18fa8e74f..2e7bd9108 100644 --- a/proto/otel/VERSION +++ b/proto/otel/VERSION @@ -1 +1 @@ -v1.3.0 +v1.5.0