opentelemetry_proto/proto/tonic/
opentelemetry.proto.common.v1.rs1#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
6#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
7#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
8#[derive(Clone, PartialEq, ::prost::Message)]
9pub struct AnyValue {
10 #[prost(oneof = "any_value::Value", tags = "1, 2, 3, 4, 5, 6, 7")]
13 #[cfg_attr(
14 feature = "with-serde",
15 serde(
16 flatten,
17 serialize_with = "crate::proto::serializers::serialize_to_value",
18 deserialize_with = "crate::proto::serializers::deserialize_from_value"
19 )
20 )]
21 pub value: ::core::option::Option<any_value::Value>,
22}
23pub mod any_value {
25 #[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
28 #[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
29 #[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
30 #[derive(Clone, PartialEq, ::prost::Oneof)]
31 pub enum Value {
32 #[prost(string, tag = "1")]
33 StringValue(::prost::alloc::string::String),
34 #[prost(bool, tag = "2")]
35 BoolValue(bool),
36 #[prost(int64, tag = "3")]
37 IntValue(i64),
38 #[prost(double, tag = "4")]
39 DoubleValue(f64),
40 #[prost(message, tag = "5")]
41 ArrayValue(super::ArrayValue),
42 #[prost(message, tag = "6")]
43 KvlistValue(super::KeyValueList),
44 #[prost(bytes, tag = "7")]
45 BytesValue(::prost::alloc::vec::Vec<u8>),
46 }
47}
48#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
51#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
52#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct ArrayValue {
55 #[prost(message, repeated, tag = "1")]
57 pub values: ::prost::alloc::vec::Vec<AnyValue>,
58}
59#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
65#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
66#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct KeyValueList {
69 #[prost(message, repeated, tag = "1")]
74 pub values: ::prost::alloc::vec::Vec<KeyValue>,
75}
76#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
79#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
80#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
81#[derive(Clone, PartialEq, ::prost::Message)]
82pub struct KeyValue {
83 #[prost(string, tag = "1")]
84 pub key: ::prost::alloc::string::String,
85 #[prost(message, optional, tag = "2")]
86 pub value: ::core::option::Option<AnyValue>,
87}
88#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
91#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
92#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
93#[cfg_attr(feature = "with-serde", serde(default))]
94#[derive(Clone, PartialEq, ::prost::Message)]
95pub struct InstrumentationScope {
96 #[prost(string, tag = "1")]
98 pub name: ::prost::alloc::string::String,
99 #[prost(string, tag = "2")]
100 pub version: ::prost::alloc::string::String,
101 #[prost(message, repeated, tag = "3")]
105 pub attributes: ::prost::alloc::vec::Vec<KeyValue>,
106 #[prost(uint32, tag = "4")]
107 pub dropped_attributes_count: u32,
108}