428
428
//! callsite). See [`Subscriber::register_callsite`] and
429
429
//! [`tracing_core::callsite`] for a summary of how this behaves.
430
430
//! - [`enabled`], once per emitted event (roughly: once per time that `event!`
431
- //! or `span!` is *executed*), and only if `register_callsite` regesters an
431
+ //! or `span!` is *executed*), and only if `register_callsite` registers an
432
432
//! [`Interest::sometimes`]. This is the main customization point to globally
433
433
//! filter events based on their [`Metadata`]. If an event can be disabled
434
434
//! based only on [`Metadata`], it should be, as this allows the construction
@@ -764,7 +764,7 @@ where
764
764
/// [`Subscriber`] has been set as the default, both the `Layer` and
765
765
/// [`Subscriber`] are passed to this method _mutably_. This gives the
766
766
/// `Layer` the opportunity to set any of its own fields with values
767
- /// recieved by method calls on the [`Subscriber`].
767
+ /// received by method calls on the [`Subscriber`].
768
768
///
769
769
/// For example, [`Filtered`] layers implement `on_layer` to call the
770
770
/// [`Subscriber`]'s [`register_filter`] method, and store the returned
@@ -1292,7 +1292,7 @@ feature! {
1292
1292
/// <pre class="ignore" style="white-space:normal;font:inherit;">
1293
1293
/// <strong>Note</strong>: If a <code>Filter</code> will perform
1294
1294
/// <em>dynamic filtering</em> that depends on the current context in which
1295
- /// a span or event was observered (e.g. only enabling an event when it
1295
+ /// a span or event was observed (e.g. only enabling an event when it
1296
1296
/// occurs within a particular span), it <strong>must</strong> return
1297
1297
/// <code>Interest::sometimes()</code> from this method. If it returns
1298
1298
/// <code>Interest::always()</code> or <code>Interest::never()</code>, the
@@ -1310,7 +1310,7 @@ feature! {
1310
1310
/// other hand, when a `Filter` returns [`Interest::always()`][always] or
1311
1311
/// [`Interest::never()`][never] for a callsite, _other_ [`Layer`]s may have
1312
1312
/// differing interests in that callsite. If this is the case, the callsite
1313
- /// will recieve [`Interest::sometimes()`][sometimes], and the [`enabled`]
1313
+ /// will receive [`Interest::sometimes()`][sometimes], and the [`enabled`]
1314
1314
/// method will still be called for that callsite when it records a span or
1315
1315
/// event.
1316
1316
///
0 commit comments