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#[allow(clippy::derive_partial_eq_without_eq)]
9#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct AnyValue {
11 #[prost(oneof = "any_value::Value", tags = "1, 2, 3, 4, 5, 6, 7")]
14 pub value: ::core::option::Option<any_value::Value>,
15}
16pub mod any_value {
18 #[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
21 #[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
22 #[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
23 #[allow(clippy::derive_partial_eq_without_eq)]
24 #[derive(Clone, PartialEq, ::prost::Oneof)]
25 pub enum Value {
26 #[prost(string, tag = "1")]
27 StringValue(::prost::alloc::string::String),
28 #[prost(bool, tag = "2")]
29 BoolValue(bool),
30 #[prost(int64, tag = "3")]
31 IntValue(i64),
32 #[prost(double, tag = "4")]
33 DoubleValue(f64),
34 #[prost(message, tag = "5")]
35 ArrayValue(super::ArrayValue),
36 #[prost(message, tag = "6")]
37 KvlistValue(super::KeyValueList),
38 #[prost(bytes, tag = "7")]
39 BytesValue(::prost::alloc::vec::Vec<u8>),
40 }
41}
42#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
45#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
46#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
47#[allow(clippy::derive_partial_eq_without_eq)]
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct ArrayValue {
50 #[prost(message, repeated, tag = "1")]
52 pub values: ::prost::alloc::vec::Vec<AnyValue>,
53}
54#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
60#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
61#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
62#[allow(clippy::derive_partial_eq_without_eq)]
63#[derive(Clone, PartialEq, ::prost::Message)]
64pub struct KeyValueList {
65 #[prost(message, repeated, tag = "1")]
70 pub values: ::prost::alloc::vec::Vec<KeyValue>,
71}
72#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
75#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
76#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
77#[allow(clippy::derive_partial_eq_without_eq)]
78#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct KeyValue {
80 #[prost(string, tag = "1")]
81 pub key: ::prost::alloc::string::String,
82 #[prost(message, optional, tag = "2")]
83 #[cfg_attr(
84 feature = "with-serde",
85 serde(
86 serialize_with = "crate::proto::serializers::serialize_to_value",
87 deserialize_with = "crate::proto::serializers::deserialize_from_value"
88 )
89 )]
90 pub value: ::core::option::Option<AnyValue>,
91}
92#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
95#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
96#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
97#[cfg_attr(feature = "with-serde", serde(default))]
98#[allow(clippy::derive_partial_eq_without_eq)]
99#[derive(Clone, PartialEq, ::prost::Message)]
100pub struct InstrumentationScope {
101 #[prost(string, tag = "1")]
103 pub name: ::prost::alloc::string::String,
104 #[prost(string, tag = "2")]
105 pub version: ::prost::alloc::string::String,
106 #[prost(message, repeated, tag = "3")]
110 pub attributes: ::prost::alloc::vec::Vec<KeyValue>,
111 #[prost(uint32, tag = "4")]
112 pub dropped_attributes_count: u32,
113}