pub enum OtlpTraceSettings {
Disabled,
Enabled {
common_settings: Settings,
},
}
Expand description
Configure specific settings for the OpenTelemetry trace subscriber.
Variants§
Trait Implementations§
Source§impl Debug for OtlpTraceSettings
impl Debug for OtlpTraceSettings
Source§impl Default for OtlpTraceSettings
impl Default for OtlpTraceSettings
Source§fn default() -> OtlpTraceSettings
fn default() -> OtlpTraceSettings
Returns the “default value” for a type. Read more
Source§impl From<(&'static str, LevelFilter)> for OtlpTraceSettings
impl From<(&'static str, LevelFilter)> for OtlpTraceSettings
Source§impl<T> From<Option<T>> for OtlpTraceSettingswhere
T: Into<OtlpTraceSettings>,
impl<T> From<Option<T>> for OtlpTraceSettingswhere
T: Into<OtlpTraceSettings>,
Source§impl From<Settings> for OtlpTraceSettings
impl From<Settings> for OtlpTraceSettings
Source§impl PartialEq for OtlpTraceSettings
impl PartialEq for OtlpTraceSettings
Source§impl SettingsToggle for OtlpTraceSettings
impl SettingsToggle for OtlpTraceSettings
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether the settings are enabled or not.
Source§fn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
The opposite of SettingsToggle::is_enabled as a helper.
impl StructuralPartialEq for OtlpTraceSettings
Auto Trait Implementations§
impl Freeze for OtlpTraceSettings
impl RefUnwindSafe for OtlpTraceSettings
impl Send for OtlpTraceSettings
impl Sync for OtlpTraceSettings
impl Unpin for OtlpTraceSettings
impl UnwindSafe for OtlpTraceSettings
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request