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
I am writing an application, and I would like to add the #[instrument] macro from the tracing crate (as well as Sentry) to some of my tauri::commands.
However in order to do that, for some of my commands which access state, I am receiving the following error, which states that tauri::State does not implement Debug
error[E0277]: `tauri::State<'_, state::InfraState>` doesn't implement `std::fmt::Debug`
--> src/ssh/port_forward.rs:722:1
|
722 | #[instrument]
| ^^^^^^^^^^^^^ `tauri::State<'_, state::InfraState>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `tauri::State<'_, state::InfraState>`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&tauri::State<'_, state::InfraState>`
note: required by a bound in `tracing::field::debug
Describe the solution you'd like
Implement Debug for tauri::State
Please let me know what method works the best, I was thinking that you could utilize the inner method of State
Describe the problem
I am writing an application, and I would like to add the
#[instrument]
macro from thetracing
crate (as well as Sentry) to some of mytauri::command
s.However in order to do that, for some of my commands which access state, I am receiving the following error, which states that
tauri::State
does not implementDebug
Describe the solution you'd like
Implement
Debug
fortauri::State
Please let me know what method works the best, I was thinking that you could utilize the
inner
method ofState
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: