pub struct TracingHandlerBuilder { /* private fields */ }Expand description
Builder for TracingHandler.
Implementations§
Source§impl TracingHandlerBuilder
impl TracingHandlerBuilder
Sourcepub fn with_exporter<E: TraceExporter + 'static>(self, e: E) -> Self
pub fn with_exporter<E: TraceExporter + 'static>(self, e: E) -> Self
Append an exporter.
Sourcepub fn with_default_pricing(self) -> Self
pub fn with_default_pricing(self) -> Self
Use the dated default pricing snapshot.
Sourcepub fn with_pricing(self, p: PriceTable) -> Self
pub fn with_pricing(self, p: PriceTable) -> Self
Provide a fully custom price table.
Sourcepub fn override_price(self, model: impl Into<String>, p: ModelPrice) -> Self
pub fn override_price(self, model: impl Into<String>, p: ModelPrice) -> Self
Override or insert one model’s price.
Sourcepub fn with_batcher_config(self, cfg: BatcherConfig) -> Self
pub fn with_batcher_config(self, cfg: BatcherConfig) -> Self
Override the per-exporter batcher config.
Sourcepub fn build(self) -> TracingHandler
pub fn build(self) -> TracingHandler
Finalize. Spawns one Batcher<Span> and one Batcher<ScoreRecord>
per exporter.
Trait Implementations§
Source§impl Default for TracingHandlerBuilder
impl Default for TracingHandlerBuilder
Source§fn default() -> TracingHandlerBuilder
fn default() -> TracingHandlerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracingHandlerBuilder
impl !RefUnwindSafe for TracingHandlerBuilder
impl Send for TracingHandlerBuilder
impl Sync for TracingHandlerBuilder
impl Unpin for TracingHandlerBuilder
impl UnsafeUnpin for TracingHandlerBuilder
impl !UnwindSafe for TracingHandlerBuilder
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