File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
//! `Span` and `Event` key-value data.
2
2
//!
3
- //! Spans and events may be annotated with key-value data, referred to as known
4
- //! as _fields_. These fields consist of a mapping from a key (corresponding to
3
+ //! Spans and events may be annotated with key-value data, referred to as _fields_.
4
+ //! These fields consist of a mapping from a key (corresponding to
5
5
//! a `&str` but represented internally as an array index) to a [`Value`].
6
6
//!
7
7
//! # `Value`s and `Subscriber`s
8
8
//!
9
9
//! `Subscriber`s consume `Value`s as fields attached to [span]s or [`Event`]s.
10
- //! The set of field keys on a given span or is defined on its [`Metadata`].
10
+ //! The set of field keys on a given span or event is defined on its [`Metadata`].
11
11
//! When a span is created, it provides [`Attributes`] to the `Subscriber`'s
12
12
//! [`new_span`] method, containing any fields whose values were provided when
13
13
//! the span was created; and may call the `Subscriber`'s [`record`] method
@@ -126,7 +126,6 @@ use crate::Metadata;
126
126
/// string comparisons. Thus, if possible, once the key for a field is known, it
127
127
/// should be used whenever possible.
128
128
/// </pre>
129
- /// </div>
130
129
pub trait AsField : crate :: sealed:: Sealed {
131
130
/// Attempts to convert `&self` into a `Field` with the specified `metadata`.
132
131
///
Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ impl Span {
824
824
///
825
825
/// <pre class="ignore" style="white-space:normal;font:inherit;">
826
826
/// <strong>Note</strong>: The returned <a href="../struct.EnteredSpan.html">
827
- /// <code>EnteredSpan</a ></code > guard does not implement <code>Send</code>.
827
+ /// <code>EnteredSpan</code ></a > guard does not implement <code>Send</code>.
828
828
/// Dropping the guard will exit <em>this</em> span, and if the guard is sent
829
829
/// to another thread and dropped there, that thread may never have entered
830
830
/// this span. Thus, <code>EnteredSpan</code>s should not be sent between threads.
You can’t perform that action at this time.
0 commit comments