-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Health Metrics for data-pipeline + Dogstatsd-Client Crate (#638)
* move dogstatsd-client to separate crate so it can be shared * adding some initial stats and tests * make traceexporter mut * miri can ignore unit test * refactor dogstatsd-client to not need mutability * use vec default to avoid unneeded allocation * fmt * add dogstatsd-client to docker build tool * clean up cargo.toml * remove unneeded dep * use AsRef for metric strings, improve perf and simplify usage * simplify emitting stats in data-pipeline * fix lint * Remove copy of tags and pass to dogstatsd client by reference * Update licenses * Allow IntoIterator tags to support static and dynamic tags: WIP * Fix lifetimes of DogstatsDAction Signed-off-by: Bob Weinand <[email protected]> * Actually also allow &Vec<Tag> and &[Tag] Signed-off-by: Bob Weinand <[email protected]> * cargo fmt * disable cargo bench in dogstatd-client, we use criterion * Try using iterators in data-pipeline for metrics * bump ver * more metrics * Split dogstatsdaction type to simplify code * move to owned type for sidecar-ffi * remove unused import * more unused * Add variant check * add test that fails when dogstatsdAction is updated * fix tests * use either to simplify emit_metric code * resolve todo * Add docs and initial PR review comments * more docs and readme * add ticket for todo * PR comments * remove unused import * license header * rename flusher to client * fix names * Add dogstatd-client. * add more anyhow errors for easier debugging building dogstatsd client --------- Signed-off-by: Bob Weinand <[email protected]> Co-authored-by: Bob Weinand <[email protected]> Co-authored-by: Julio Gonzalez <[email protected]>
- Loading branch information
1 parent
59aacd2
commit 829e93d
Showing
21 changed files
with
659 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2024-Present Datadog, Inc. https://www.datadoghq.com/ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
/// health_metrics holds data to emit info about the health of the data-pipeline | ||
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"; | ||
pub(crate) const STAT_SER_TRACES_ERRORS: &str = "datadog.libdatadog.ser_traces.errors"; | ||
|
||
pub(crate) enum HealthMetric { | ||
Count(&'static str, i64), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.