6 releases

0.7.4 Oct 27, 2024
0.7.3 Sep 23, 2024
0.7.2 Aug 16, 2024
0.6.8 Jul 16, 2024

#915 in Debugging

Download history 366/week @ 2024-08-12 8/week @ 2024-08-19 4/week @ 2024-09-16 164/week @ 2024-09-23 13/week @ 2024-09-30 8/week @ 2024-10-07 1/week @ 2024-10-14 67/week @ 2024-10-21 93/week @ 2024-10-28 32/week @ 2024-11-04 7/week @ 2024-11-11 1/week @ 2024-11-18 204/week @ 2024-11-25

252 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–16MB
~211K SLoC