Skip to content

Commit

Permalink
expose types
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiemontese committed Dec 3, 2024
1 parent 45cae55 commit 429c69c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/configuration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -23,7 +25,7 @@ pub struct Configuration {
tags: Vec<String>,
tracker: TagTrackerConfiguration,
socket_path: Option<String>,
batching_options: Option<dogstatsd::BatchingOptions>,
batching_options: Option<BatchingOptions>,
}

impl Configuration {
Expand Down Expand Up @@ -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
}
Expand All @@ -93,7 +95,7 @@ impl Configuration {
self.socket_path.clone()
}

pub fn batching_options(&self) -> Option<dogstatsd::BatchingOptions> {
pub fn batching_options(&self) -> Option<BatchingOptions> {
self.batching_options
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 429c69c

Please sign in to comment.