-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from worldcoin/0xkitsune/datadog
Tree Availability Datadog logic
- Loading branch information
Showing
11 changed files
with
377 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
pub mod metrics; | ||
pub mod test_utilities; | ||
pub mod tracing; | ||
pub use opentelemetry::global::shutdown_tracer_provider; |
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,12 @@ | ||
use metrics_exporter_statsd::StatsdBuilder; | ||
|
||
pub fn init_statsd_exporter(host: &str, port: u16) { | ||
//TODO: update these to be args | ||
let recorder = StatsdBuilder::from(host, port) | ||
.with_queue_size(5000) | ||
.with_buffer_size(1024) | ||
.build(None) | ||
.expect("Could not create StatsdRecorder"); | ||
|
||
metrics::set_boxed_recorder(Box::new(recorder)).expect("TODO:"); | ||
} |
Oops, something went wrong.