opentelemetry_proto/proto/tonic/opentelemetry.proto.resource.v1.rs
1// This file is @generated by prost-build.
2/// Resource information.
3#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
4#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
5#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
6#[cfg_attr(feature = "with-serde", serde(default))]
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct Resource {
9 /// Set of attributes that describe the resource.
10 /// Attribute keys MUST be unique (it is not allowed to have more than one
11 /// attribute with the same key).
12 ///
13 /// The attribute values SHOULD NOT contain empty values.
14 /// The attribute values SHOULD NOT contain bytes values.
15 /// The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
16 /// double values.
17 /// The attribute values SHOULD NOT contain kvlist values.
18 /// The behavior of software that receives attributes containing such values can be unpredictable.
19 /// These restrictions can change in a minor release.
20 /// The restrictions take origin from the OpenTelemetry specification:
21 /// <https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.>
22 #[prost(message, repeated, tag = "1")]
23 pub attributes: ::prost::alloc::vec::Vec<super::super::common::v1::KeyValue>,
24 /// dropped_attributes_count is the number of dropped attributes. If the value is 0, then
25 /// no attributes were dropped.
26 #[prost(uint32, tag = "2")]
27 pub dropped_attributes_count: u32,
28 /// Set of entities that participate in this Resource.
29 ///
30 /// Note: keys in the references MUST exist in attributes of this message.
31 ///
32 /// Status: \[Development\]
33 #[prost(message, repeated, tag = "3")]
34 pub entity_refs: ::prost::alloc::vec::Vec<super::super::common::v1::EntityRef>,
35}