Skip to content

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

@jayvdb

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

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