docs.rs failed to build reqwest-tracing-wasi-0.4.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
reqwest-tracing
Opentracing middleware implementation for
reqwest-middleware
.
Overview
Attach TracingMiddleware
to your client to automatically trace HTTP requests:
# Cargo.toml
# ...
[]
= "0.18"
= "0.11"
= "0.1.1"
= "0.1.1"
= { = "0.3.1", = ["opentelemetry_0_18"] }
= { = "1.12.0", = ["macros", "rt-multi-thread"] }
= "0.1"
= "0.18"
= "0.3"
= "0.1.4"
use ;
use stdout;
use ;
use ;
use Instant;
use Extensions;
use Span;
use SubscriberExt;
use Registry;
;
async
async
$ cargo run
SpanData { span_context: SpanContext { trace_id: ...
See the tracing
crate for more information on how to set up a
tracing subscriber to make use of the spans.
How to install
Add reqwest-tracing
to your dependencies. Optionally enable opentelemetry integration by enabling
an opentelemetry version feature:
[]
# ...
= { = "0.3.1", = ["opentelemetry_0_18"] }
Available opentelemetry features are opentelemetry_0_20
, opentelemetry_0_19
, opentelemetry_0_18
, opentelemetry_0_17
, opentelemetry_0_16
, opentelemetry_0_15
, opentelemetry_0_14
and
opentelemetry_0_13
.