Skip to content

Commit

Permalink
Initial move to use SendData in trace exporter (APMSP-1586) (#753)
Browse files Browse the repository at this point in the history
* Initial move to use SendData in trace exporter

* rust fmt

* temporarilly comment out client stats code

* more clippy

* comment out doc comment

* add test for failing to deser traces to improve coverage

* Update data-pipeline/src/trace_exporter.rs

Co-authored-by: Edmund Kump <[email protected]>

* clean up and add jira tickets from pr review

* oops formatting

* just mark these consts as dead_code

* clean up

---------

Co-authored-by: Edmund Kump <[email protected]>
  • Loading branch information
ajgajg1134 and ekump authored Nov 25, 2024
1 parent 191a68a commit 25079f5
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 216 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions data-pipeline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dogstatsd-client = { path = "../dogstatsd-client"}
datadog-trace-obfuscation = { path = "../trace-obfuscation" }
uuid = { version = "1.10.0", features = ["v4"] }
tokio-util = "0.7.11"
tinybytes = { path = "../tinybytes", features = ["bytes_string", "serialization"] }

[lib]
bench = false
Expand Down
1 change: 1 addition & 0 deletions data-pipeline/src/health_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub(crate) const STAT_SEND_TRACES: &str = "datadog.libdatadog.send.traces";
pub(crate) const STAT_SEND_TRACES_ERRORS: &str = "datadog.libdatadog.send.traces.errors";
pub(crate) const STAT_DESER_TRACES: &str = "datadog.libdatadog.deser_traces";
pub(crate) const STAT_DESER_TRACES_ERRORS: &str = "datadog.libdatadog.deser_traces.errors";
#[allow(dead_code)] // TODO (APMSP-1584) Add support for health metrics when using trace utils
pub(crate) const STAT_SER_TRACES_ERRORS: &str = "datadog.libdatadog.ser_traces.errors";

pub(crate) enum HealthMetric {
Expand Down
Loading

0 comments on commit 25079f5

Please sign in to comment.