pub struct LoggingInterceptor { /* private fields */ }Expand description
A gRPC interceptor that logs requests.
This interceptor logs the start of each request. For complete request/response
logging including timing and response status, you should combine this with
tower middleware or use the RequestLogger wrapper.
Implementations§
Source§impl LoggingInterceptor
impl LoggingInterceptor
Sourcepub fn with_config(config: LoggingConfig) -> Self
pub fn with_config(config: LoggingConfig) -> Self
Create a logging interceptor with custom configuration.
Sourcepub fn config(&self) -> &LoggingConfig
pub fn config(&self) -> &LoggingConfig
Get the configuration.
Trait Implementations§
Source§impl Clone for LoggingInterceptor
impl Clone for LoggingInterceptor
Source§fn clone(&self) -> LoggingInterceptor
fn clone(&self) -> LoggingInterceptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LoggingInterceptor
impl Default for LoggingInterceptor
Auto Trait Implementations§
impl Freeze for LoggingInterceptor
impl RefUnwindSafe for LoggingInterceptor
impl Send for LoggingInterceptor
impl Sync for LoggingInterceptor
impl Unpin for LoggingInterceptor
impl UnwindSafe for LoggingInterceptor
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> 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>
Wrap the input message
T in a tonic::Request