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: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,27 @@ cargo add instrument-level
28
28
29
29
This crate provides five attribute macros for different tracing log levels:
30
30
31
-
-`#[instrument_trace]`- Trace Level Instrumentation - 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`.
-`#[instrument_debug]` - Debug Level Instrumentation - Use this macro to add debug-level logging instrumentation to functions. Ideal for development and debugging purposes.
33
+
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`.
34
34
35
-
-`#[instrument_info]` - Info Level Instrumentation - Use this macro to add info-level logging instrumentation to functions. Suitable for general informational messages.
-`#[instrument_warn]` - Warning Level Instrumentation - Use this macro to add warning-level logging instrumentation to functions. Use for potentially harmful situations.
37
+
Use this macro to add debug-level logging instrumentation to functions. Ideal for development and debugging purposes.
38
38
39
-
-`#[instrument_error]`- Error Level Instrumentation -Use this macro to add error-level logging instrumentation to functions. Use for error conditions that don't necessarily stop program execution. 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.
39
+
### `#[instrument_info]` - Info Level Instrumentation
40
+
41
+
Use this macro to add info-level logging instrumentation to functions. Suitable for general informational messages.
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.
0 commit comments