3131//! Unintentional drops of `WorkerGuard` remove the guarantee that logs will be flushed
3232//! during a program's termination, in a panic or otherwise.
3333//!
34- //! See [`WorkerGuard`][worker_guard] for examples of using the guard.
35- //!
36- //! [worker_guard]: WorkerGuard
34+ //! See [`WorkerGuard`] for examples of using the guard.
3735//!
3836//! # Examples
3937//!
@@ -60,12 +58,11 @@ use tracing_subscriber::fmt::MakeWriter;
6058
6159/// The default maximum number of buffered log lines.
6260///
63- /// If [`NonBlocking`][non-blocking] is lossy, it will drop spans/events at capacity.
64- /// If [`NonBlocking`][non-blocking] is _not_ lossy,
65- /// backpressure will be exerted on senders, causing them to block their
66- /// respective threads until there is available capacity.
61+ /// If [`NonBlocking`] is lossy, it will drop spans/events at capacity.
62+ /// If [`NonBlocking`] is _not_ lossy, backpressure will be exerted on
63+ /// senders, causing them to block their respective threads until there
64+ /// is available capacity.
6765///
68- /// [non-blocking]: NonBlocking
6966/// Recommended to be a power of 2.
7067pub const DEFAULT_BUFFERED_LINES_LIMIT : usize = 128_000 ;
7168
@@ -116,11 +113,10 @@ pub struct WorkerGuard {
116113/// `NonBlocking` moves the writing out of an application's data path by sending spans and events
117114/// to a dedicated logging thread.
118115///
119- /// This struct implements [`MakeWriter`][make_writer] from the `tracing-subscriber`
116+ /// This struct implements [`MakeWriter`] from the `tracing-subscriber`
120117/// crate. Therefore, it can be used with the [`tracing_subscriber::fmt`][fmt] module
121118/// or with any other subscriber/layer implementation that uses the `MakeWriter` trait.
122119///
123- /// [make_writer]: tracing_subscriber::fmt::MakeWriter
124120/// [fmt]: mod@tracing_subscriber::fmt
125121#[ derive( Clone , Debug ) ]
126122pub struct NonBlocking {
@@ -184,9 +180,7 @@ impl NonBlocking {
184180 }
185181}
186182
187- /// A builder for [`NonBlocking`][non-blocking].
188- ///
189- /// [non-blocking]: NonBlocking
183+ /// A builder for [`NonBlocking`].
190184#[ derive( Debug ) ]
191185pub struct NonBlockingBuilder {
192186 buffered_lines_limit : usize ,
0 commit comments