10 releases

0.7.9 Mar 25, 2025
0.7.8 Mar 14, 2025
0.7.6 Feb 3, 2025
0.7.5 Jan 3, 2025
0.6.8 Jul 16, 2024

#2 in #jaeger-tracing

Download history 2/week @ 2024-12-27 131/week @ 2025-01-03 2/week @ 2025-01-10 114/week @ 2025-01-31 13/week @ 2025-02-07 4/week @ 2025-02-14 136/week @ 2025-03-14 99/week @ 2025-03-21 36/week @ 2025-03-28 2/week @ 2025-04-04 3/week @ 2025-04-11

141 downloads per month

Apache-2.0

185KB
4K SLoC

fastrace-datadog

Documentation Crates.io LICENSE

Datadog reporter for fastrace.

Dependencies

[dependencies]
fastrace = "0.7"
fastrace-datadog = "0.7"

Setup Datadog Agent

Please follow the Datadog official documentation.

cargo run --example synchronous

Report to Datadog Agent

use std::net::SocketAddr;

use fastrace::collector::Config;
use fastrace::prelude::*;

// Initialize reporter
let reporter = fastrace_datadog::DatadogReporter::new(
    "127.0.0.1:8126".parse().unwrap(),
    "asynchronous",
    "db",
    "select",
);
fastrace::set_reporter(reporter, Config::default());

{
    // Start tracing
    let root = Span::root("root", SpanContext::random());
}

fastrace::flush();

Dependencies

~5–21MB
~219K SLoC