Forked from https://github.com/pipefy/datadog-apm-rust.
```rust { let enabled = true; let config = Config::new( "servicename".tostring(), Some("staging".tostring()), "localhost:8196".tostring(), LoggingConfig { level: Level::Debug, ..LoggingConfig::default() }, ApmConfig::default(), enabled, ); let _client = DatadogTracing::new(config);
```
```rust
pub fn foo(name: &str) { debug!("Hello, {}!", name); } ```
rust
{
let span = span!(Level::INFO, "foo");
let _enter = span.enter();
info!("greeting");
}
See also tracing