Struct mz_ore::tracing::OpenTelemetryEnableCallback
source · [−]pub struct OpenTelemetryEnableCallback {
callback: Arc<dyn Fn(bool) -> Result<(), Error> + Send + Sync>,
current_enabled: Arc<AtomicBool>,
}
Available on crate feature
tracing
only.Expand description
A callback that can be used to enable or disable the OpenTelemetry layer.
Fields
callback: Arc<dyn Fn(bool) -> Result<(), Error> + Send + Sync>
current_enabled: Arc<AtomicBool>
Implementations
sourceimpl OpenTelemetryEnableCallback
impl OpenTelemetryEnableCallback
Trait Implementations
sourceimpl Clone for OpenTelemetryEnableCallback
impl Clone for OpenTelemetryEnableCallback
Auto Trait Implementations
impl !RefUnwindSafe for OpenTelemetryEnableCallback
impl Send for OpenTelemetryEnableCallback
impl Sync for OpenTelemetryEnableCallback
impl Unpin for OpenTelemetryEnableCallback
impl !UnwindSafe for OpenTelemetryEnableCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request