tag | 66e046b443700fed6bae0a5d20e6edce486ea413 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 07 10:57:19 2024 -0700 |
object | 7095c45c7e35fdf9eed69d4c2505713a2d0266ae |
Android 14.0.0 release 35
commit | 7095c45c7e35fdf9eed69d4c2505713a2d0266ae | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 21 00:14:26 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 21 00:14:26 2023 +0000 |
tree | a990b115a73aad33abb10ec88f84bbcd1c2219a5 | |
parent | 1b05238b94571b9b4ba9668719e312da34b9d8a5 [diff] | |
parent | c580f843942c4f1f9769cde8683729dad8007925 [diff] |
Snap for 11124398 from c580f843942c4f1f9769cde8683729dad8007925 to 24Q1-release Change-Id: I8cddbb45f58cf312780ac777039d148dbbb4b35a
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.56+
First, add this to your Cargo.toml
:
[dependencies] tracing-attributes = "0.1.26"
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.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.66, 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.