31
31
//! Unintentional drops of `WorkerGuard` remove the guarantee that logs will be flushed
32
32
//! during a program's termination, in a panic or otherwise.
33
33
//!
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.
37
35
//!
38
36
//! # Examples
39
37
//!
@@ -60,12 +58,11 @@ use tracing_subscriber::fmt::MakeWriter;
60
58
61
59
/// The default maximum number of buffered log lines.
62
60
///
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.
67
65
///
68
- /// [non-blocking]: NonBlocking
69
66
/// Recommended to be a power of 2.
70
67
pub const DEFAULT_BUFFERED_LINES_LIMIT : usize = 128_000 ;
71
68
@@ -116,11 +113,10 @@ pub struct WorkerGuard {
116
113
/// `NonBlocking` moves the writing out of an application's data path by sending spans and events
117
114
/// to a dedicated logging thread.
118
115
///
119
- /// This struct implements [`MakeWriter`][make_writer] from the `tracing-subscriber`
116
+ /// This struct implements [`MakeWriter`] from the `tracing-subscriber`
120
117
/// crate. Therefore, it can be used with the [`tracing_subscriber::fmt`][fmt] module
121
118
/// or with any other subscriber/layer implementation that uses the `MakeWriter` trait.
122
119
///
123
- /// [make_writer]: tracing_subscriber::fmt::MakeWriter
124
120
/// [fmt]: mod@tracing_subscriber::fmt
125
121
#[ derive( Clone , Debug ) ]
126
122
pub struct NonBlocking {
@@ -184,9 +180,7 @@ impl NonBlocking {
184
180
}
185
181
}
186
182
187
- /// A builder for [`NonBlocking`][non-blocking].
188
- ///
189
- /// [non-blocking]: NonBlocking
183
+ /// A builder for [`NonBlocking`].
190
184
#[ derive( Debug ) ]
191
185
pub struct NonBlockingBuilder {
192
186
buffered_lines_limit : usize ,
0 commit comments