rustracing_jaeger
Jaeger client library created on top of rustracing.
Examples
Basic Usage
use AllSampler;
use Tracer;
use JaegerCompactReporter;
// Creates a tracer
let = bounded;
let tracer = with_sender;
// The dropped span will be sent to `span_rx`
let span = span_rx.try_recv.unwrap;
assert_eq!;
// Reports this span to the local jaeger agent
let reporter = new.unwrap;
reporter.report.unwrap;
Executes report.rs
example
# Run jaeger in background
$ docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 jaegertracing/all-in-one:latest
# Report example spans
$ cargo run --example report
# View spans (see the image below)
$ firefox http://localhost:16686/