Struct console_api::instrument::Update
source · [−]pub struct Update {
pub now: Option<Timestamp>,
pub task_update: Option<TaskUpdate>,
pub resource_update: Option<ResourceUpdate>,
pub async_op_update: Option<AsyncOpUpdate>,
pub new_metadata: Option<RegisterMetadata>,
}Expand description
Update carries all information regarding tasks, resources, async operations and resource operations in one message. There are a couple of reasons to combine all of these into a single message:
- we can use one single timestamp for all the data
- we can have all the new_metadata in one place
- things such as async ops and resource ops do not make sense on their own as they have relations to tasks and resources
Fields
now: Option<Timestamp>The system time when this update was recorded.
This is the timestamp any durations in the included Stats were
calculated relative to.
task_update: Option<TaskUpdate>Task state update.
resource_update: Option<ResourceUpdate>Resource state update.
async_op_update: Option<AsyncOpUpdate>Async operations state update
new_metadata: Option<RegisterMetadata>Any new span metadata that was registered since the last update.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
Auto Trait Implementations
impl RefUnwindSafe for Update
impl UnwindSafe for Update
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more