Skip to main content

SinkConfig

Struct SinkConfig 

Source
pub struct SinkConfig {
Show 14 fields pub schema: u32, pub ack: AckMode, pub policy: RedactionPolicy, pub key: Option<DigestKey>, pub bindings: Bindings, pub sampling: Sampling, pub logs: bool, pub max_queued_spans: usize, pub batch_size: usize, pub export_timeout_ms: u64, pub value_bound: usize, pub max_pending_contexts: usize, pub context_ttl_ms: u64, pub join_buffer: usize,
}
Expand description

The sink’s configuration. SinkConfig::default holds every default the spec states.

Fields§

§schema: u32

The span schema version to emit (3.2.4); only 1 exists.

§ack: AckMode§policy: RedactionPolicy

The redaction policy (3.4); the default policy when the host gives none.

§key: Option<DigestKey>

The digest key, needed when any effective action is digest.

§bindings: Bindings§sampling: Sampling§logs: bool

Log records for unresolved, escalated, cancelled and failed work (3.6.3).

§max_queued_spans: usize§batch_size: usize

Spans per export batch; a single larger tree is exported alone.

§export_timeout_ms: u64§value_bound: usize

The per-attribute value bound in bytes (3.8.5).

§max_pending_contexts: usize§context_ttl_ms: u64§join_buffer: usize

Exchange records waiting to be joined (3.7.3).

Implementations§

Source§

impl SinkConfig

Source

pub fn validate(&self) -> Result<(), ConfigError>

Every range of this module, and the schema version.

Trait Implementations§

Source§

impl Clone for SinkConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SinkConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SinkConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.