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    #[prost(message, repeated, tag = "1")]
13    pub attributes: ::prost::alloc::vec::Vec<super::super::common::v1::KeyValue>,
14    /// dropped_attributes_count is the number of dropped attributes. If the value is 0, then
15    /// no attributes were dropped.
16    #[prost(uint32, tag = "2")]
17    pub dropped_attributes_count: u32,
18}