tracing-assert-macros
The tracing_capture_event_fields!
macro
This macro runs a given block of code, and returns only the Field/Value tuples emitted per Event.
It's a quick way to inspect the custom data your events carry.
Example usage:
use tracing_capture_event_fields;
use tracing;
// Given
let expected_events: = vec!;
// When capturing the event field/values into the `events` variable
let events = tracing_capture_event_fields!;
// Then
assert_eq!;