pub struct Options {
pub api_key: String,
pub api_host: String,
pub dataset: String,
pub sample_rate: usize,
}
Expand description
Options is a subset of the global libhoney config that focuses on the configuration of the client itself.
Fields§
§api_key: String
api_key is the Honeycomb authentication token. If it is specified during libhoney initialization, it will be used as the default API key for all events. If absent, API key must be explicitly set on a builder or event. Find your team’s API keys at https://ui.honeycomb.io/account
api_host: String
api_host is the hostname for the Honeycomb API server to which to send this event. default: https://api.honeycomb.io/
dataset: String
dataset is the name of the Honeycomb dataset to which to send these events. If it is specified during libhoney initialization, it will be used as the default dataset for all events. If absent, dataset must be explicitly set on a builder or event.
sample_rate: usize
sample_rate is the rate at which to sample this event. Default is 1, meaning no sampling. If you want to send one event out of every 250 times Send() is called, you would specify 250 here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)