Show the crate…

14 releases

0.6.7 Jun 23, 2024
0.6.4 Feb 8, 2024
0.6.2 Nov 2, 2023
0.5.0 Jul 28, 2023
0.4.0 Jan 26, 2022

#949 in Debugging

Download history 823/week @ 2024-09-18 811/week @ 2024-09-25 764/week @ 2024-10-02 935/week @ 2024-10-09 675/week @ 2024-10-16 855/week @ 2024-10-23 614/week @ 2024-10-30 671/week @ 2024-11-06 616/week @ 2024-11-13 447/week @ 2024-11-20 583/week @ 2024-11-27 693/week @ 2024-12-04 649/week @ 2024-12-11 552/week @ 2024-12-18 133/week @ 2024-12-25 169/week @ 2025-01-01

1,645 downloads per month

Apache-2.0

185KB
4K SLoC

minitrace-jaeger

Documentation Crates.io LICENSE

Jaeger reporter for minitrace.

Dependencies

[dependencies]
minitrace = "0.6"
minitrace-jaeger = "0.6"

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 minitrace::collector::Config;
use minitrace::prelude::*;

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

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

minitrace::flush();

Dependencies

~1.4–7MB
~43K SLoC