tag | 051d18b98449c489bdfa9085e3fb601c006575db | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 10 12:09:44 2023 -0700 |
object | 40067bfdb9143034185aa3f190468eb25b2f8e3f |
Android 14.0.0 release 5
commit | 40067bfdb9143034185aa3f190468eb25b2f8e3f | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Apr 01 04:38:59 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Apr 01 04:38:59 2023 +0000 |
tree | b2daf12e3cdbe6feed23759b95c4a9eccb4d6e42 | |
parent | 049d1565b42e734877eb731beca18ae2adb4e205 [diff] | |
parent | f7206b858090548451488326d3a18e027657b536 [diff] |
Snap for 9867398 from f7206b858090548451488326d3a18e027657b536 to udc-d1-release Change-Id: Ic81728d813f88e6543229c3b6d9ff3352dffd6ab
Macro attributes for application-level tracing.
tracing
is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. This crate provides the #[instrument]
attribute for automatically instrumenting functions using tracing
.
Note that this macro is also re-exported by the main tracing
crate.
Compiler support: requires rustc
1.49+
First, add this to your Cargo.toml
:
[dependencies] tracing-attributes = "0.1.23"
This crate provides the #[instrument]
attribute for instrumenting a function with a tracing
span. For example:
use tracing_attributes::instrument; #[instrument] pub fn my_function(my_arg: usize) { // ... }
Tracing is built against the latest stable release. The minimum supported version is 1.49. 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.45, the minimum supported version will not be increased past 1.42, 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.