1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Update {
    /// A list of span events that happened since the last update.
    #[prost(message, repeated, tag = "1")]
    pub span_events: ::prost::alloc::vec::Vec<SpanEvent>,
    /// A count of how many log events were dropped because
    /// the event buffer was at capacity.
    ///
    /// If everything is working correctly, this should be 0. If this
    /// number is greater than zero this indicates the event buffers capacity
    /// should be increased or the publish interval decreased.
    #[prost(uint64, tag = "2")]
    pub dropped_events: u64,
}
/// A span event
///
/// Span events are emitted whenever a span lifecycle event happens and are thus rather low-level by nature.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpanEvent {
    #[prost(oneof = "span_event::Event", tags = "1, 2, 3, 4")]
    pub event: ::core::option::Option<span_event::Event>,
}
/// Nested message and enum types in `SpanEvent`.
pub mod span_event {
    /// Represents a period of time in which a program was executing in a particular context.
    ///
    /// Corresponds to `Span` in the `tracing` crate.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Span {
        /// An Id that uniquely identifies it in relation to other spans.
        #[prost(uint64, tag = "1")]
        pub id: u64,
        /// Identifier for metadata describing static characteristics of all spans originating
        /// from that call site, such as its name, source code location, verbosity level, and
        /// the names of its fields.
        #[prost(uint64, tag = "2")]
        pub metadata_id: u64,
        /// User-defined key-value pairs of arbitrary data that describe the context the span represents,
        #[prost(message, repeated, tag = "3")]
        pub fields: ::prost::alloc::vec::Vec<super::super::common::Field>,
        #[prost(uint64, optional, tag = "4")]
        pub parent: ::core::option::Option<u64>,
        /// Timestamp for the span.
        #[prost(message, optional, tag = "5")]
        pub at: ::core::option::Option<::prost_types::Timestamp>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Enter {
        #[prost(uint64, tag = "1")]
        pub span_id: u64,
        #[prost(uint64, tag = "2")]
        pub thread_id: u64,
        #[prost(message, optional, tag = "3")]
        pub at: ::core::option::Option<::prost_types::Timestamp>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Exit {
        #[prost(uint64, tag = "1")]
        pub span_id: u64,
        #[prost(uint64, tag = "2")]
        pub thread_id: u64,
        #[prost(message, optional, tag = "3")]
        pub at: ::core::option::Option<::prost_types::Timestamp>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Close {
        #[prost(uint64, tag = "1")]
        pub span_id: u64,
        #[prost(message, optional, tag = "3")]
        pub at: ::core::option::Option<::prost_types::Timestamp>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Event {
        #[prost(message, tag = "1")]
        NewSpan(Span),
        #[prost(message, tag = "2")]
        EnterSpan(Enter),
        #[prost(message, tag = "3")]
        ExitSpan(Exit),
        #[prost(message, tag = "4")]
        CloseSpan(Close),
    }
}