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

Download history 13/week @ 2024-07-22 84/week @ 2024-07-29 23/week @ 2024-08-05 56/week @ 2024-09-16 20/week @ 2024-09-23 10/week @ 2024-09-30 20/week @ 2024-10-07 40/week @ 2024-10-21 27/week @ 2024-11-04

74 downloads per month

Apache-2.0

180KB
3.5K SLoC

minitrace-datadog

Documentation Crates.io LICENSE

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