pub struct InstrumentationOptions {
pub tracer_provider: Option<Arc<dyn TracerProvider>>,
}Available on crate feature
export-azure only.Expand description
Policy options to enable distributed tracing.
ยงNotes
LoggingOptions::additional_allowed_query_params
is used to sanitize query parameters in traced URLs as well.
Query parameters not in the default or additional allow list will have their values
replaced with REDACTED in the url.full span attribute.
Fieldsยง
ยงtracer_provider: Option<Arc<dyn TracerProvider>>Set the tracer provider for distributed tracing.
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 Debug for InstrumentationOptions
impl Debug for InstrumentationOptions
Sourceยง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 UnsafeUnpin 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