From 429c69ca82f6e9e8d2400be38f7448d00d684640 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Tue, 3 Dec 2024 15:15:49 +0100 Subject: [PATCH] expose types --- src/configuration/mod.rs | 8 +++++--- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/configuration/mod.rs b/src/configuration/mod.rs index 675bf88..88b0570 100644 --- a/src/configuration/mod.rs +++ b/src/configuration/mod.rs @@ -6,6 +6,8 @@ mod env; pub use country::Country; pub use env::Environment; +pub use dogstatsd::BatchingOptions; + use crate::TagTrackerConfiguration; use std::fmt::Display; @@ -23,7 +25,7 @@ pub struct Configuration { tags: Vec, tracker: TagTrackerConfiguration, socket_path: Option, - batching_options: Option, + batching_options: Option, } impl Configuration { @@ -68,7 +70,7 @@ impl Configuration { self } - pub fn with_batching_options(mut self, batching_options: dogstatsd::BatchingOptions) -> Self { + pub fn with_batching_options(mut self, batching_options: BatchingOptions) -> Self { self.batching_options = Some(batching_options); self } @@ -93,7 +95,7 @@ impl Configuration { self.socket_path.clone() } - pub fn batching_options(&self) -> Option { + pub fn batching_options(&self) -> Option { self.batching_options } diff --git a/src/lib.rs b/src/lib.rs index 1425391..9e67cc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -116,7 +116,7 @@ use std::future::Future; use configuration::Configuration; -pub use dogstatsd::{EventOptions, ServiceCheckOptions, ServiceStatus}; +pub use dogstatsd::{EventAlertType, EventOptions, ServiceCheckOptions, ServiceStatus}; use once_cell::sync::OnceCell; pub use client::DogstatsdClient;