pub struct ProcessEnricher;Expand description
Attaches process-level identity (PID, TID, UID) to every log.
- PID is
std::process::id(). Works everywhere. - TID is
libc::syscall(SYS_gettid)on Linux,libc::pthread_self()cast tou64on other Unix targets. Absent on non-Unix. - UID is
libc::getuid(). Absent on non-Unix.
The Windows path lands in Phase 21.2 alongside GetCurrentThreadId
and GetCurrentProcess bindings.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessEnricher
impl Clone for ProcessEnricher
impl Copy for ProcessEnricher
Source§impl Debug for ProcessEnricher
impl Debug for ProcessEnricher
Source§impl Default for ProcessEnricher
impl Default for ProcessEnricher
Auto Trait Implementations§
impl Forget for ProcessEnricher
impl Freeze for ProcessEnricher
impl RefUnwindSafe for ProcessEnricher
impl Send for ProcessEnricher
impl Sync for ProcessEnricher
impl Unpin for ProcessEnricher
impl UnsafeUnpin for ProcessEnricher
impl UnwindSafe for ProcessEnricher
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