pub struct TracingConfigBuilder { /* private fields */ }Expand description
Builder for TracingConfig.
Implementations§
Source§impl TracingConfigBuilder
impl TracingConfigBuilder
Sourcepub fn service_name(self, name: impl Into<String>) -> Self
pub fn service_name(self, name: impl Into<String>) -> Self
Set the service name for traces.
Sourcepub fn record_payloads(self, enabled: bool) -> Self
pub fn record_payloads(self, enabled: bool) -> Self
Enable recording of request payloads.
Sourcepub fn record_responses(self, enabled: bool) -> Self
pub fn record_responses(self, enabled: bool) -> Self
Enable recording of response payloads.
Sourcepub fn max_payload_size(self, size: usize) -> Self
pub fn max_payload_size(self, size: usize) -> Self
Set maximum payload size to record.
Sourcepub fn build(self) -> TracingConfig
pub fn build(self) -> TracingConfig
Build the TracingConfig.
Trait Implementations§
Source§impl Debug for TracingConfigBuilder
impl Debug for TracingConfigBuilder
Source§impl Default for TracingConfigBuilder
impl Default for TracingConfigBuilder
Source§fn default() -> TracingConfigBuilder
fn default() -> TracingConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracingConfigBuilder
impl RefUnwindSafe for TracingConfigBuilder
impl Send for TracingConfigBuilder
impl Sync for TracingConfigBuilder
impl Unpin for TracingConfigBuilder
impl UnwindSafe for TracingConfigBuilder
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request