[][src]Struct libhoney::client::Options

pub struct Options {
    pub api_key: String,
    pub api_host: String,
    pub dataset: String,
    pub sample_rate: usize,
}

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

impl Default for Options[src]

impl Clone for Options[src]

impl Debug for Options[src]

Auto Trait Implementations

impl Send for Options

impl Unpin for Options

impl Sync for Options

impl UnwindSafe for Options

impl RefUnwindSafe for Options

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err