commit | 0b71a032aad082c8dc92f5ee65497495bcf7ac78 | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Mon Apr 29 23:12:52 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Apr 29 23:12:52 2024 +0000 |
tree | 58e96ae82105644131a8467af870a1b4da4d5751 | |
parent | 577903cf35850a8d3e5e8172f649cfc8ae66a2d5 [diff] | |
parent | c5464f6db950816deba339cf9edd86f375b3295d [diff] |
[automerger skipped] Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future am: c5464f6db9 -s ours am skip reason: Merged-In Ib94ef9a62fab5dd93118f81da31751d39c8efbb8 with SHA-1 affe428695 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/tracing-core/+/27144781 Change-Id: Ide5cda513432dca13106d6d3a4f85886eb10a10f Signed-off-by: Automerger Merge Worker <[email protected]>
Core primitives for application-level tracing.
tracing
is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. This crate defines the core primitives of tracing
.
The crate provides:
span::Id
identifies a span within the execution of a program.
Event
represents a single event within a trace.
Subscriber
, the trait implemented to collect trace data.
Metadata
and Callsite
provide information describing spans and events.
Field
, FieldSet
, Value
, and ValueSet
represent the structured data attached to spans and events.
Dispatch
allows spans and events to be dispatched to Subscriber
s.
In addition, it defines the global callsite registry and per-thread current dispatcher which other components of the tracing system rely on.
Compiler support: requires rustc
1.56+
Application authors will typically not use this crate directly. Instead, they will use the tracing
crate, which provides a much more fully-featured API. However, this crate's API will change very infrequently, so it may be used when dependencies must be very stable.
Subscriber
implementations may depend on tracing-core
rather than tracing
, as the additional APIs provided by tracing
are primarily useful for instrumenting libraries and applications, and are generally not necessary for Subscriber
implementations.
The following crate feature flags are available:
std
: Depend on the Rust standard library (enabled by default).
no_std
users may disable this feature with default-features = false
:
[dependencies] tracing-core = { version = "0.1.31", default-features = false }
Note:tracing-core
's no_std
support requires liballoc
.
Tracing is built against the latest stable release. The minimum supported version is 1.56. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version.
Tracing follows the same compiler support policies as the rest of the Tokio project. The current stable Rust compiler and the three most recent minor versions before it will always be supported. For example, if the current stable compiler version is 1.69, the minimum supported version will not be increased past 1.69, three minor versions prior. Increasing the minimum supported compiler version is not considered a semver breaking change as long as doing so complies with this policy.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.