You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cargo.toml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
[package]
2
2
name = "instrument-level"
3
-
version = "10.14.11"
3
+
version = "1.0.0"
4
4
readme = "README.md"
5
5
edition = "2024"
6
6
authors = ["root@ltpp.vip"]
7
7
license = "MIT"
8
-
description = """"""
8
+
description = "A Rust procedural macro collection providing convenient tracing instrumentation macros for different log levels (trace, debug, info, warn, error). This crate simplifies the process of adding tracing spans to functions with pre-configured log levels."
> A Rust procedural macro collection providing convenient tracing instrumentation macros for different log levels (trace, debug, info, warn, error). This crate simplifies the process of adding tracing spans to functions with pre-configured log levels.
18
+
19
+
## Installation
20
+
21
+
To use this crate, you can run cmd:
22
+
23
+
```shell
24
+
cargo add instrument-level
25
+
```
26
+
27
+
## Usage
28
+
29
+
This crate provides five attribute macros for different tracing log levels:
Use this macro to add trace-level logging instrumentation to functions. This is the most verbose log level and automatically excludes all function arguments from span fields using `skip_all`.
Use this macro to add error-level logging instrumentation to functions. Use for error conditions that don't necessarily stop program execution.
50
+
51
+
Each macro accepts optional tracing parameters such as `target`, `name`, `skip`, `fields`, etc., which can be used to customize the span behavior according to your needs.
52
+
53
+
## License
54
+
55
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
56
+
57
+
## Contributing
58
+
59
+
Contributions are welcome! Please open an issue or submit a pull request.
60
+
61
+
## Contact
62
+
63
+
For any inquiries, please reach out to the author at [root@ltpp.vip](mailto:root@ltpp.vip).
0 commit comments