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: u32The span schema version to emit (3.2.4); only 1 exists.
ack: AckMode§policy: RedactionPolicyThe 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: boolLog records for unresolved, escalated, cancelled and failed work (3.6.3).
max_queued_spans: usize§batch_size: usizeSpans per export batch; a single larger tree is exported alone.
export_timeout_ms: u64§value_bound: usizeThe per-attribute value bound in bytes (3.8.5).
max_pending_contexts: usize§context_ttl_ms: u64§join_buffer: usizeExchange records waiting to be joined (3.7.3).
Implementations§
Source§impl SinkConfig
impl SinkConfig
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Every range of this module, and the schema version.
Trait Implementations§
Source§impl Clone for SinkConfig
impl Clone for SinkConfig
Source§impl Debug for SinkConfig
impl Debug for SinkConfig
Auto Trait Implementations§
impl Freeze for SinkConfig
impl RefUnwindSafe for SinkConfig
impl Send for SinkConfig
impl Sync for SinkConfig
impl Unpin for SinkConfig
impl UnsafeUnpin for SinkConfig
impl UnwindSafe for SinkConfig
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
Mutably borrows from an owned value. Read more