15 releases
| 0.7.14 | Jul 3, 2025 |
|---|---|
| 0.7.12 | Jun 24, 2025 |
| 0.7.9 | Mar 25, 2025 |
| 0.7.4 | Oct 27, 2024 |
| 0.6.8 | Jul 16, 2024 |
#1324 in Debugging
20,320 downloads per month
Used in 4 crates
195KB
4K
SLoC
fastrace-jaeger
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
~1.5–2.6MB
~50K SLoC