| Crates.io | datadoghq |
| lib.rs | datadoghq |
| version | 0.2.2 |
| created_at | 2022-05-27 01:30:55.605884+00 |
| updated_at | 2022-06-30 01:23:00.953886+00 |
| description | Datadog APM-compatible tracer and logger |
| homepage | https://castiglia.ar |
| repository | https://github.com/andrescastiglia/rust-datadog.git |
| max_upload_size | |
| id | 594694 |
| size | 46,278 |
Forked from https://github.com/pipefy/datadog-apm-rust.
{
let enabled = true;
let config = Config::new(
"service_name".to_string(),
Some("staging".to_string()),
"localhost:8196".to_string(),
LoggingConfig {
level: Level::Debug,
..LoggingConfig::default()
},
ApmConfig::default(),
enabled,
);
let _client = DatadogTracing::new(config);
#[tracing::instrument]
pub fn foo(name: &str) {
debug!("Hello, {}!", name);
}
{
let span = span!(Level::INFO, "foo");
let _enter = span.enter();
info!("greeting");
}
See also tracing