pub struct Configuration<T> { /* fields omitted */ }
Sets the buffer capacity.
Defaults to 4096
.
This controls the size of the channel used to send metrics. This channel is shared amongst
all active sinks. If this channel is full when sending a metric, that send will be blocked
until the channel has free space.
Tweaking this value allows for a trade-off between low memory consumption and throughput
burst capabilities. By default, we expect samples to occupy approximately 64 bytes. Thus,
at our default value, we preallocate roughly ~232kB.
Generally speaking, sending and processing metrics is fast enough that the default value of
4096 supports millions of samples per second.
Create a Receiver
based on this configuration.
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static