pub struct DogstatsdCodecConfiguration { /* private fields */ }
Expand description
DogStatsD codec configuration.
Implementations§
Source§impl DogstatsdCodecConfiguration
impl DogstatsdCodecConfiguration
Sourcepub fn with_permissive_mode(self, permissive: bool) -> Self
pub fn with_permissive_mode(self, permissive: bool) -> Self
Sets whether or not the codec should operate in permissive mode.
In permissive mode, the codec will attempt to parse as much of the input as possible, relying solely on structural markers (specific delimiting characters) to determine the boundaries of different parts of the payload. This allows for decoding payloads with invalid contents (e.g., characters that are valid UTF-8, but aren’t within ASCII bounds, etc) such that the data plane can attempt to process them further.
Permissive mode does not allow for decoding payloads with structural errors (e.g., missing delimiters, etc) or that cannot be safely handled internally (e.g., invalid UTF-8 characters for the metric name or tags).
Defaults to false
.
Sourcepub fn with_maximum_tag_length(self, maximum_tag_length: usize) -> Self
pub fn with_maximum_tag_length(self, maximum_tag_length: usize) -> Self
Sets the maximum tag length.
This controls the number of bytes that are allowed for a single tag. If a tag exceeds this limit, it is truncated to the closest previous UTF-8 character boundary, in order to preserve UTF-8 validity.
Defaults to no limit.
Sourcepub fn with_maximum_tag_count(self, maximum_tag_count: usize) -> Self
pub fn with_maximum_tag_count(self, maximum_tag_count: usize) -> Self
Sets the maximum tag count.
This is the maximum number of tags allowed for a single metric. If the number of tags exceeds this limit, remaining tags are simply ignored.
Defaults to no limit.
Sourcepub fn with_timestamps(self, timestamps: bool) -> Self
pub fn with_timestamps(self, timestamps: bool) -> Self
Sets whether or not timestamps are read from metrics.
This is generally used in conjunction with aggregating metrics pipelines to control whether or not metrics are able to specify their own timestamp in order to be forwarded immediately without aggregation.
Defaults to true
.
Trait Implementations§
Source§impl Clone for DogstatsdCodecConfiguration
impl Clone for DogstatsdCodecConfiguration
Source§fn clone(&self) -> DogstatsdCodecConfiguration
fn clone(&self) -> DogstatsdCodecConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DogstatsdCodecConfiguration
impl Debug for DogstatsdCodecConfiguration
Auto Trait Implementations§
impl Freeze for DogstatsdCodecConfiguration
impl RefUnwindSafe for DogstatsdCodecConfiguration
impl Send for DogstatsdCodecConfiguration
impl Sync for DogstatsdCodecConfiguration
impl Unpin for DogstatsdCodecConfiguration
impl UnwindSafe for DogstatsdCodecConfiguration
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Tracked
wrapper. Read moreSource§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Tracked
wrapper. Read more