pub struct InstrumentationOptions {
pub record_metrics: bool,
pub preview_limit: usize,
pub preview_fn: Option<Arc<dyn Fn(&RecordBatch) -> Result<String, ArrowError> + Send + Sync>>,
pub custom_fields: HashMap<String, String>,
}
Expand description
Configuration options for instrumented execution plans.
Fields§
§record_metrics: bool
Whether to record metrics during execution.
preview_limit: usize
Maximum number of rows to preview per span.
If set to 0
, batch preview recording will be disabled.
preview_fn: Option<Arc<dyn Fn(&RecordBatch) -> Result<String, ArrowError> + Send + Sync>>
Optional callback function for formatting previewed record batches.
The provided function will be invoked for each previewed batch of at most preview_limit
rows.
custom_fields: HashMap<String, String>
User-defined custom fields for extensible configuration.
This can be used to store arbitrary key-value pairs relevant to instrumentation or metadata.
Implementations§
Trait Implementations§
Source§impl Clone for InstrumentationOptions
impl Clone for InstrumentationOptions
Source§fn clone(&self) -> InstrumentationOptions
fn clone(&self) -> InstrumentationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for InstrumentationOptions
impl Default for InstrumentationOptions
Source§fn default() -> InstrumentationOptions
fn default() -> InstrumentationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstrumentationOptions
impl !RefUnwindSafe for InstrumentationOptions
impl Send for InstrumentationOptions
impl Sync for InstrumentationOptions
impl Unpin for InstrumentationOptions
impl !UnwindSafe for InstrumentationOptions
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
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more