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 |
#18 in #jaeger
74 downloads per month
180KB
3.5K
SLoC
minitrace-datadog
Datadog reporter for minitrace
.
Dependencies
[dependencies]
minitrace = "0.6"
minitrace-datadog = "0.6"
Setup Datadog Agent
Please follow the Datadog official documentation.
cargo run --example synchronous
Report to Datadog Agent
use std::net::SocketAddr;
use minitrace::collector::Config;
use minitrace::prelude::*;
// Initialize reporter
let reporter = minitrace_datadog::DatadogReporter::new(
"127.0.0.1:8126".parse().unwrap(),
"asynchronous",
"db",
"select",
);
minitrace::set_reporter(reporter, Config::default());
{
// Start tracing
let root = Span::root("root", SpanContext::random());
}
minitrace::flush();
Dependencies
~5–17MB
~233K SLoC