I'm able to emit events using .with_span_events(), but they are created at TRACE level. Is there any way to cause these to be created at a different level?
The level is determined by the span's itself level, and this is hardcoded and cannot be changed.
The level of the span can be set:
If you are using the span!() macro, the first argument is the level. Or you can use one of the shortcut macros: trace_span!() etc..
If you are using #[instrument], you can pass a level = "<level>" argument to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With