aboutsummaryrefslogtreecommitdiff
path: root/src/span.rs
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2024-02-06 09:14:09 +0100
committerJeff Vander Stoep <jeffv@google.com>2024-02-06 09:14:10 +0100
commit4647cbe7f8a1568d3cc82a43c97d23069abb3f72 (patch)
tree06fb932dc1a5e16957c77c797e9d63e34c01fbf1 /src/span.rs
parent84397d729b0e53e99c5f78728d5830843e10c77e (diff)
downloadtracing-4647cbe7f8a1568d3cc82a43c97d23069abb3f72.tar.gz
Upgrade tracing to 0.1.40
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/rust/crates/tracing For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: I3fb3686d0870590d5b81674996e90cf1ba80853a
Diffstat (limited to 'src/span.rs')
-rw-r--r--src/span.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/span.rs b/src/span.rs
index 58822f4..3c235dc 100644
--- a/src/span.rs
+++ b/src/span.rs
@@ -22,7 +22,7 @@
//! override their default values.
//! - The span's [verbosity level]
//! - A string literal providing the span's name.
-//! - Finally, between zero and 32 arbitrary key/value fields.
+//! - Finally, zero or more arbitrary key/value fields.
//!
//! [`target`]: super::Metadata::target
//!
@@ -824,7 +824,7 @@ impl Span {
///
/// <pre class="ignore" style="white-space:normal;font:inherit;">
/// <strong>Note</strong>: The returned <a href="../struct.EnteredSpan.html">
- /// <code>EnteredSpan</a></code> guard does not implement <code>Send</code>.
+ /// <code>EnteredSpan</code></a> guard does not implement <code>Send</code>.
/// Dropping the guard will exit <em>this</em> span, and if the guard is sent
/// to another thread and dropped there, that thread may never have entered
/// this span. Thus, <code>EnteredSpan</code>s should not be sent between threads.
@@ -1617,7 +1617,7 @@ mod test {
#[test]
fn test_record_backwards_compat() {
- Span::current().record("some-key", &"some text");
- Span::current().record("some-key", &false);
+ Span::current().record("some-key", "some text");
+ Span::current().record("some-key", false);
}
}