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

#17 in #jaeger

Download history 21/week @ 2024-07-16 61/week @ 2024-07-23 43/week @ 2024-07-30 11/week @ 2024-08-06 29/week @ 2024-09-10 28/week @ 2024-09-17 20/week @ 2024-09-24 12/week @ 2024-10-01 17/week @ 2024-10-08 2/week @ 2024-10-15 38/week @ 2024-10-22

70 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

~6–18MB
~243K SLoC