pub struct BufferedAdminSink {
pub max_traces: u64,
pub timeout: Option<Duration>,
}Expand description
BufferedAdminSink configures a tap output to collect traces without returning them until
one of multiple criteria are satisfied.
Similar to StreamingAdminSink, it is only allowed to specify the buffered admin output
sink if the tap is being configured from the /tap admin endpoint.
Fields§
§max_traces: u64Stop collecting traces when the specified number are collected. If other criteria for ending collection are reached first, this value will not be used.
timeout: Option<Duration>Acts as a fallback to prevent the client from waiting for long periods of time. After timeout has occurred, a buffer flush will be triggered, returning the traces buffered so far. This may result in returning fewer traces than were requested, and in the case that no traces are buffered during this time, no traces will be returned. Specifying 0 for the timeout value (or not specifying a value at all) indicates an infinite timeout.
Trait Implementations§
Source§impl Clone for BufferedAdminSink
impl Clone for BufferedAdminSink
Source§fn clone(&self) -> BufferedAdminSink
fn clone(&self) -> BufferedAdminSink
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BufferedAdminSink
impl Debug for BufferedAdminSink
Source§impl Default for BufferedAdminSink
impl Default for BufferedAdminSink
Source§impl Message for BufferedAdminSink
impl Message for BufferedAdminSink
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for BufferedAdminSink
impl Name for BufferedAdminSink
Source§const NAME: &'static str = "BufferedAdminSink"
const NAME: &'static str = "BufferedAdminSink"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "envoy.config.tap.v3"
const PACKAGE: &'static str = "envoy.config.tap.v3"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for BufferedAdminSink
impl PartialEq for BufferedAdminSink
impl Copy for BufferedAdminSink
impl StructuralPartialEq for BufferedAdminSink
Auto Trait Implementations§
impl Freeze for BufferedAdminSink
impl RefUnwindSafe for BufferedAdminSink
impl Send for BufferedAdminSink
impl Sync for BufferedAdminSink
impl Unpin for BufferedAdminSink
impl UnwindSafe for BufferedAdminSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request