pub enum OtlpLogSettings {
Disabled,
Enabled {
common_settings: Settings,
},
}
Expand description
Configure specific settings for the OpenTelemetry log subscriber.
Variants§
Trait Implementations§
Source§impl Debug for OtlpLogSettings
impl Debug for OtlpLogSettings
Source§impl Default for OtlpLogSettings
impl Default for OtlpLogSettings
Source§fn default() -> OtlpLogSettings
fn default() -> OtlpLogSettings
Returns the “default value” for a type. Read more
Source§impl From<(&'static str, LevelFilter)> for OtlpLogSettings
impl From<(&'static str, LevelFilter)> for OtlpLogSettings
Source§impl<T> From<Option<T>> for OtlpLogSettingswhere
T: Into<OtlpLogSettings>,
impl<T> From<Option<T>> for OtlpLogSettingswhere
T: Into<OtlpLogSettings>,
Source§impl From<Settings> for OtlpLogSettings
impl From<Settings> for OtlpLogSettings
Source§impl PartialEq for OtlpLogSettings
impl PartialEq for OtlpLogSettings
Source§impl SettingsToggle for OtlpLogSettings
impl SettingsToggle for OtlpLogSettings
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 OtlpLogSettings
Auto Trait Implementations§
impl Freeze for OtlpLogSettings
impl RefUnwindSafe for OtlpLogSettings
impl Send for OtlpLogSettings
impl Sync for OtlpLogSettings
impl Unpin for OtlpLogSettings
impl UnwindSafe for OtlpLogSettings
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