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
reqwest-tracing macros require http to be defined by the user.
error[E0433]: failed to resolve: could not find `http` in the list of imported crates
--> my-code.rs:55:9
|
55 | reqwest_otel_span!(level = tracing::Level::TRACE, name = name, req)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `http` in the list of imported crates
Solution
The macros should refer to http defined within reqwest-tracing, so it controls the version of http that is needed.