Skip to main content

devtools_wire_format/generated/
rs.devtools.logs.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Update {
4    /// A list of log events that happened since the last update.
5    #[prost(message, repeated, tag = "1")]
6    pub log_events: ::prost::alloc::vec::Vec<LogEvent>,
7    /// A count of how many log events were dropped because
8    /// the event buffer was at capacity.
9    ///
10    /// If everything is working correctly, this should be 0. If this
11    /// number is greater than zero this indicates the event buffers capacity
12    /// should be increased or the publish interval decreased.
13    #[prost(uint64, tag = "2")]
14    pub dropped_events: u64,
15}
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct LogEvent {
18    /// The main message body of the log.
19    #[prost(string, tag = "1")]
20    pub message: ::prost::alloc::string::String,
21    /// Log events can happen inside of spans and if they do, this field will indicate which span it was.
22    #[prost(uint64, optional, tag = "2")]
23    pub parent: ::core::option::Option<u64>,
24    /// Identifier for metadata describing static characteristics of all spans originating
25    /// from that call site, such as its name, source code location, verbosity level, and
26    /// the names of its fields.
27    #[prost(uint64, tag = "3")]
28    pub metadata_id: u64,
29    /// User-defined key-value pairs of arbitrary data associated with the event.
30    #[prost(message, repeated, tag = "4")]
31    pub fields: ::prost::alloc::vec::Vec<super::common::Field>,
32    /// Timestamp for the log event.
33    #[prost(message, optional, tag = "5")]
34    pub at: ::core::option::Option<::prost_types::Timestamp>,
35}