pub struct TracingSubscriberAdapter { /* private fields */ }Expand description
Tracing subscriber adapter for structured logging integration
This adapter implements tracing::Subscriber to capture tracing events and convert them to LogEntry for processing through the hexagonal architecture
Implementations§
Source§impl TracingSubscriberAdapter
impl TracingSubscriberAdapter
pub fn new( processor_chain: ProcessorChain, transport: Arc<dyn TransportPort>, level_filter: LogLevel, ) -> Self
Trait Implementations§
Source§impl Subscriber for TracingSubscriberAdapter
Available on crate feature structured-logging only.
impl Subscriber for TracingSubscriberAdapter
Available on crate feature
structured-logging only.Source§fn new_span(&self, _span: &Attributes<'_>) -> Id
fn new_span(&self, _span: &Attributes<'_>) -> Id
Source§fn record(&self, _span: &Id, _values: &Record<'_>)
fn record(&self, _span: &Id, _values: &Record<'_>)
Record a set of values on a span. Read more
Source§fn record_follows_from(&self, _span: &Id, _follows: &Id)
fn record_follows_from(&self, _span: &Id, _follows: &Id)
Source§fn on_register_dispatch(&self, subscriber: &Dispatch)
fn on_register_dispatch(&self, subscriber: &Dispatch)
Source§fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
Source§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Returns the highest verbosity level that this
Subscriber will
enable, or None, if the subscriber does not implement level-based
filtering or chooses not to implement this method. Read moreSource§fn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
Source§fn clone_span(&self, id: &Id) -> Id
fn clone_span(&self, id: &Id) -> Id
Source§fn drop_span(&self, _id: Id)
fn drop_span(&self, _id: Id)
👎Deprecated since 0.1.2:
use Subscriber::try_close instead
This method is deprecated. Read more
Source§fn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this subscriber’s view of the current span. Read more
Auto Trait Implementations§
impl Freeze for TracingSubscriberAdapter
impl !RefUnwindSafe for TracingSubscriberAdapter
impl Send for TracingSubscriberAdapter
impl Sync for TracingSubscriberAdapter
impl Unpin for TracingSubscriberAdapter
impl UnsafeUnpin for TracingSubscriberAdapter
impl !UnwindSafe for TracingSubscriberAdapter
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