6 releases

0.7.4 Oct 27, 2024
0.7.3 Sep 23, 2024
0.7.2 Aug 16, 2024
0.6.8 Jul 16, 2024

#396 in Debugging

Download history 20/week @ 2024-07-30 22/week @ 2024-08-06 267/week @ 2024-08-13 43/week @ 2024-08-20 44/week @ 2024-08-27 435/week @ 2024-09-03 1798/week @ 2024-09-10 1526/week @ 2024-09-17 3050/week @ 2024-09-24 1311/week @ 2024-10-01 1462/week @ 2024-10-08 3202/week @ 2024-10-15 2006/week @ 2024-10-22 3375/week @ 2024-10-29 1809/week @ 2024-11-05 3542/week @ 2024-11-12

10,970 downloads per month
Used in 2 crates

Apache-2.0

190KB
4K SLoC

fastrace-jaeger

Documentation Crates.io LICENSE

Jaeger reporter for fastrace.

Dependencies

[dependencies]
fastrace = "0.7"
fastrace-jaeger = "0.7"

Setup Jaeger Agent

docker run --rm -d -p6831:6831/udp -p14268:14268 -p16686:16686 --name jaeger jaegertracing/all-in-one:latest

cargo run --example synchronous

Web UI is available on http://127.0.0.1:16686/

Report to Jaeger Agent

use std::net::SocketAddr;

use fastrace::collector::Config;
use fastrace::prelude::*;

// Initialize reporter
let reporter =
    fastrace_jaeger::JaegerReporter::new("127.0.0.1:6831".parse().unwrap(), "asynchronous")
        .unwrap();
fastrace::set_reporter(reporter, Config::default());

{
    // Start tracing
    let root = Span::root("root", SpanContext::random());
}

fastrace::flush();

Dependencies

~2.5–7.5MB
~63K SLoC