https://github.com/flashnetxyz/dogdata-rs
About Utilities for integrating Datadog with OpenTelemetry + tracing in rust
https://github.com/flashnetxyz/dogdata-rs
datadog metrics observability opentelemetry reqwest rust tracing
Last synced: 4 months ago
JSON representation
About Utilities for integrating Datadog with OpenTelemetry + tracing in rust
- Host: GitHub
- URL: https://github.com/flashnetxyz/dogdata-rs
- Owner: flashnetxyz
- License: apache-2.0
- Created: 2025-07-11T14:40:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-13T16:13:08.000Z (11 months ago)
- Last Synced: 2025-12-03T13:58:54.186Z (6 months ago)
- Topics: datadog, metrics, observability, opentelemetry, reqwest, rust, tracing
- Language: Rust
- Homepage: https://crates.io/crates/dogdata
- Size: 182 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/flashnetxyz/dogdata-rs)
# dogdata-rs
# Configuration
The lib is configurable via environment variables as following:
| env var | default value | description |
|------------------------|----------------------------------------------|-----------------------------------------------------------|
| DD_ENABLED | false | Enables the datadog exporter and trace_id/span_id on logs |
| DD_SERVICE | | Datadog service name |
| DD_AGENT_HOST | localhost | Datadog agent host |
| DD_AGENT_PORT | 8126 | Datadog agent port |
| RUST_LOG | info | |
| OTEL_LOG_LEVEL | debug | |
# Further Context and Rationale
## Inspiration
This crate is a fork of [datadog-tracing](https://github.com/will-bank/datadog-tracing) with updated dependencies and adjusted span base names for greater compatibility.
The original datadog-tracing lib was highly inspired on [ddtrace](https://github.com/Validus-Risk-Management/ddtrace) crate,
which is also a glue between tracing + opentelemetry + datadog.
The **main difference** is that it exportes using the `opentelemetry_otlp` exporter, and this one uses `opentelemetry_datadog`,
so there is no need to configure your datadog agent to receive traces via OTLP and the default datadog APM works as expected!