|
| 1 | +// This file is @generated by prost-build. |
| 2 | +/// AnyValue is used to represent any type of attribute value. AnyValue may contain a |
| 3 | +/// primitive value such as a string or integer or it may contain an arbitrary nested |
| 4 | +/// object containing arrays, key-value lists and primitives. |
| 5 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 6 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 7 | +pub struct AnyValue { |
| 8 | + /// The value is one of the listed fields. It is valid for all values to be unspecified |
| 9 | + /// in which case this AnyValue is considered to be "empty". |
| 10 | + #[prost(oneof = "any_value::Value", tags = "1, 2, 3, 4, 5, 6, 7")] |
| 11 | + pub value: ::core::option::Option<any_value::Value>, |
| 12 | +} |
| 13 | +/// Nested message and enum types in `AnyValue`. |
| 14 | +pub mod any_value { |
| 15 | + /// The value is one of the listed fields. It is valid for all values to be unspecified |
| 16 | + /// in which case this AnyValue is considered to be "empty". |
| 17 | + #[allow(clippy::derive_partial_eq_without_eq)] |
| 18 | + #[derive(Clone, PartialEq, ::prost::Oneof)] |
| 19 | + pub enum Value { |
| 20 | + #[prost(string, tag = "1")] |
| 21 | + StringValue(::prost::alloc::string::String), |
| 22 | + #[prost(bool, tag = "2")] |
| 23 | + BoolValue(bool), |
| 24 | + #[prost(int64, tag = "3")] |
| 25 | + IntValue(i64), |
| 26 | + #[prost(double, tag = "4")] |
| 27 | + DoubleValue(f64), |
| 28 | + #[prost(message, tag = "5")] |
| 29 | + ArrayValue(super::ArrayValue), |
| 30 | + #[prost(message, tag = "6")] |
| 31 | + KvlistValue(super::KeyValueList), |
| 32 | + #[prost(bytes, tag = "7")] |
| 33 | + BytesValue(::prost::alloc::vec::Vec<u8>), |
| 34 | + } |
| 35 | +} |
| 36 | +/// ArrayValue is a list of AnyValue messages. We need ArrayValue as a message |
| 37 | +/// since oneof in AnyValue does not allow repeated fields. |
| 38 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 39 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 40 | +pub struct ArrayValue { |
| 41 | + /// Array of values. The array may be empty (contain 0 elements). |
| 42 | + #[prost(message, repeated, tag = "1")] |
| 43 | + pub values: ::prost::alloc::vec::Vec<AnyValue>, |
| 44 | +} |
| 45 | +/// KeyValueList is a list of KeyValue messages. We need KeyValueList as a message |
| 46 | +/// since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need |
| 47 | +/// a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to |
| 48 | +/// avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches |
| 49 | +/// are semantically equivalent. |
| 50 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 51 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 52 | +pub struct KeyValueList { |
| 53 | + /// A collection of key/value pairs of key-value pairs. The list may be empty (may |
| 54 | + /// contain 0 elements). |
| 55 | + /// The keys MUST be unique (it is not allowed to have more than one |
| 56 | + /// value with the same key). |
| 57 | + #[prost(message, repeated, tag = "1")] |
| 58 | + pub values: ::prost::alloc::vec::Vec<KeyValue>, |
| 59 | +} |
| 60 | +/// KeyValue is a key-value pair that is used to store Span attributes, Link |
| 61 | +/// attributes, etc. |
| 62 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 63 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 64 | +pub struct KeyValue { |
| 65 | + #[prost(string, tag = "1")] |
| 66 | + pub key: ::prost::alloc::string::String, |
| 67 | + #[prost(message, optional, tag = "2")] |
| 68 | + pub value: ::core::option::Option<AnyValue>, |
| 69 | +} |
| 70 | +/// InstrumentationScope is a message representing the instrumentation scope information |
| 71 | +/// such as the fully qualified name and version. |
| 72 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 73 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 74 | +pub struct InstrumentationScope { |
| 75 | + /// An empty instrumentation scope name means the name is unknown. |
| 76 | + #[prost(string, tag = "1")] |
| 77 | + pub name: ::prost::alloc::string::String, |
| 78 | + #[prost(string, tag = "2")] |
| 79 | + pub version: ::prost::alloc::string::String, |
| 80 | + /// Additional attributes that describe the scope. \[Optional\]. |
| 81 | + /// Attribute keys MUST be unique (it is not allowed to have more than one |
| 82 | + /// attribute with the same key). |
| 83 | + #[prost(message, repeated, tag = "3")] |
| 84 | + pub attributes: ::prost::alloc::vec::Vec<KeyValue>, |
| 85 | + #[prost(uint32, tag = "4")] |
| 86 | + pub dropped_attributes_count: u32, |
| 87 | +} |
| 88 | +/// A reference to an Entity. |
| 89 | +/// Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs. |
| 90 | +/// |
| 91 | +/// Status: \[Development\] |
| 92 | +#[allow(clippy::derive_partial_eq_without_eq)] |
| 93 | +#[derive(Clone, PartialEq, ::prost::Message)] |
| 94 | +pub struct EntityRef { |
| 95 | + /// The Schema URL, if known. This is the identifier of the Schema that the entity data |
| 96 | + /// is recorded in. To learn more about Schema URL see |
| 97 | + /// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url> |
| 98 | + /// |
| 99 | + /// This schema_url applies to the data in this message and to the Resource attributes |
| 100 | + /// referenced by id_keys and description_keys. |
| 101 | + /// TODO: discuss if we are happy with this somewhat complicated definition of what |
| 102 | + /// the schema_url applies to. |
| 103 | + /// |
| 104 | + /// This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs. |
| 105 | + #[prost(string, tag = "1")] |
| 106 | + pub schema_url: ::prost::alloc::string::String, |
| 107 | + /// Defines the type of the entity. MUST not change during the lifetime of the entity. |
| 108 | + /// For example: "service" or "host". This field is required and MUST not be empty |
| 109 | + /// for valid entities. |
| 110 | + #[prost(string, tag = "2")] |
| 111 | + pub r#type: ::prost::alloc::string::String, |
| 112 | + /// Attribute Keys that identify the entity. |
| 113 | + /// MUST not change during the lifetime of the entity. The Id must contain at least one attribute. |
| 114 | + /// These keys MUST exist in the containing {message}.attributes. |
| 115 | + #[prost(string, repeated, tag = "3")] |
| 116 | + pub id_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, |
| 117 | + /// Descriptive (non-identifying) attribute keys of the entity. |
| 118 | + /// MAY change over the lifetime of the entity. MAY be empty. |
| 119 | + /// These attribute keys are not part of entity's identity. |
| 120 | + /// These keys MUST exist in the containing {message}.attributes. |
| 121 | + #[prost(string, repeated, tag = "4")] |
| 122 | + pub description_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, |
| 123 | +} |
0 commit comments