Skip to content

reqwest-tracing macros require http to be declared by users #238

Description

@jayvdb

Motivations

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.

Alternatives

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions