7 releases

0.7.5 Jan 3, 2025
0.7.4 Oct 27, 2024
0.7.3 Sep 23, 2024
0.7.2 Aug 16, 2024
0.6.8 Jul 16, 2024

#959 in Debugging

Download history 131/week @ 2024-09-18 40/week @ 2024-09-25 9/week @ 2024-10-02 7/week @ 2024-10-09 109/week @ 2024-10-23 56/week @ 2024-10-30 29/week @ 2024-11-06 6/week @ 2024-11-13 129/week @ 2024-11-20 75/week @ 2024-11-27 2/week @ 2024-12-04 4/week @ 2024-12-11 133/week @ 2025-01-01

139 downloads per month

Apache-2.0

195KB
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–17MB
~215K SLoC