pub struct ExecutionLoggerProvider<P>(pub P);Expand description
Decorate the application’s OpenTelemetry logger provider with execution IDs.
Use this provider in an OpenTelemetry log or tracing bridge. Its lifecycle
remains owned by the application; ordinary log bodies and request IDs remain
application-owned. No logging bridge is installed automatically.
Tuple Fields§
§0: PTrait Implementations§
Source§impl<P: Clone> Clone for ExecutionLoggerProvider<P>
impl<P: Clone> Clone for ExecutionLoggerProvider<P>
Source§fn clone(&self) -> ExecutionLoggerProvider<P>
fn clone(&self) -> ExecutionLoggerProvider<P>
Returns a copy 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<P: Debug> Debug for ExecutionLoggerProvider<P>
impl<P: Debug> Debug for ExecutionLoggerProvider<P>
Source§impl<P: LoggerProvider> LoggerProvider for ExecutionLoggerProvider<P>
impl<P: LoggerProvider> LoggerProvider for ExecutionLoggerProvider<P>
Source§type Logger = ExecutionLogger<<P as LoggerProvider>::Logger>
type Logger = ExecutionLogger<<P as LoggerProvider>::Logger>
The [
Logger] type that this provider will return.Source§fn logger_with_scope(&self, scope: InstrumentationScope) -> Self::Logger
fn logger_with_scope(&self, scope: InstrumentationScope) -> Self::Logger
Returns a new logger with the given instrumentation scope. Read more
Auto Trait Implementations§
impl<P> Freeze for ExecutionLoggerProvider<P>where
P: Freeze,
impl<P> RefUnwindSafe for ExecutionLoggerProvider<P>where
P: RefUnwindSafe,
impl<P> Send for ExecutionLoggerProvider<P>where
P: Send,
impl<P> Sync for ExecutionLoggerProvider<P>where
P: Sync,
impl<P> Unpin for ExecutionLoggerProvider<P>where
P: Unpin,
impl<P> UnwindSafe for ExecutionLoggerProvider<P>where
P: UnwindSafe,
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