@@ -5,12 +5,12 @@ pub use tracing_core::subscriber::*;
5
5
#[ cfg_attr( docsrs, doc( cfg( feature = "std" ) ) ) ]
6
6
pub use tracing_core:: dispatcher:: DefaultGuard ;
7
7
8
- /// Sets this subscriber as the default for the duration of a closure.
8
+ /// Sets this [`Subscriber`] as the default for the current thread for the
9
+ /// duration of a closure.
9
10
///
10
11
/// The default subscriber is used when creating a new [`Span`] or
11
- /// [`Event`], _if no span is currently executing_. If a span is currently
12
- /// executing, new spans or events are dispatched to the subscriber that
13
- /// tagged that span, instead.
12
+ /// [`Event`].
13
+ ///
14
14
///
15
15
/// [`Span`]: super::span::Span
16
16
/// [`Subscriber`]: super::subscriber::Subscriber
@@ -43,13 +43,10 @@ where
43
43
crate :: dispatcher:: set_global_default ( crate :: Dispatch :: new ( subscriber) )
44
44
}
45
45
46
- /// Sets the subscriber as the default for the duration of the lifetime of the
47
- /// returned [`DefaultGuard`]
46
+ /// Sets the [`Subscriber`] as the default for the current thread for the
47
+ /// duration of the lifetime of the returned [`DefaultGuard`].
48
48
///
49
- /// The default subscriber is used when creating a new [`Span`] or
50
- /// [`Event`], _if no span is currently executing_. If a span is currently
51
- /// executing, new spans or events are dispatched to the subscriber that
52
- /// tagged that span, instead.
49
+ /// The default subscriber is used when creating a new [`Span`] or [`Event`].
53
50
///
54
51
/// [`Span`]: super::span::Span
55
52
/// [`Subscriber`]: super::subscriber::Subscriber
0 commit comments