Crates.io | fastrace-jaeger |
lib.rs | fastrace-jaeger |
version | 0.7.4 |
source | src |
created_at | 2024-07-16 10:04:30.73262 |
updated_at | 2024-10-27 17:20:27.171009 |
description | Jaeger reporter for fastrace |
homepage | |
repository | https://github.com/fast/fastrace |
max_upload_size | |
id | 1304903 |
size | 25,505 |
[dependencies]
fastrace = "0.7"
fastrace-jaeger = "0.7"
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/
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();