7 releases

0.7.5 Jan 3, 2025
0.7.4 Oct 27, 2024
0.7.3 Sep 23, 2024
0.7.2 Aug 16, 2024
0.6.8 Jul 16, 2024

#350 in Debugging

Download history 2831/week @ 2024-09-20 1594/week @ 2024-09-27 1321/week @ 2024-10-04 2703/week @ 2024-10-11 2595/week @ 2024-10-18 2083/week @ 2024-10-25 3396/week @ 2024-11-01 3110/week @ 2024-11-08 2302/week @ 2024-11-15 988/week @ 2024-11-22 3055/week @ 2024-11-29 1083/week @ 2024-12-06 1582/week @ 2024-12-13 1660/week @ 2024-12-20 4582/week @ 2024-12-27 3737/week @ 2025-01-03

11,586 downloads per month
Used in 3 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.6–8MB
~65K SLoC