pub struct InitSummary { /* private fields */ }Expand description
Summary of what was initialized during observability setup.
Implementations§
Source§impl InitSummary
impl InitSummary
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Returns the service name used during initialization.
Sourcepub fn traces_enabled(&self) -> bool
pub fn traces_enabled(&self) -> bool
Returns whether trace export was enabled.
Sourcepub fn metrics_enabled(&self) -> bool
pub fn metrics_enabled(&self) -> bool
Returns whether metric export was enabled.
Sourcepub fn otlp_logs_enabled(&self) -> bool
pub fn otlp_logs_enabled(&self) -> bool
Returns whether OTLP log export was enabled.
Sourcepub fn fmt_layer_enabled(&self) -> bool
pub fn fmt_layer_enabled(&self) -> bool
Returns whether the fmt (stdout) layer was enabled.
Sourcepub fn file_logging_enabled(&self) -> bool
pub fn file_logging_enabled(&self) -> bool
Returns whether file logging was enabled.
Sourcepub fn structured_stdout_logging_enabled(&self) -> bool
pub fn structured_stdout_logging_enabled(&self) -> bool
Returns whether structured JSON stdout logging was enabled.
Sourcepub fn otlp_traces_endpoint(&self) -> Option<&str>
pub fn otlp_traces_endpoint(&self) -> Option<&str>
Returns the configured OTLP traces endpoint, if any.
Sourcepub fn otlp_metrics_endpoint(&self) -> Option<&str>
pub fn otlp_metrics_endpoint(&self) -> Option<&str>
Returns the configured OTLP metrics endpoint, if any.
Sourcepub fn otlp_logs_endpoint(&self) -> Option<&str>
pub fn otlp_logs_endpoint(&self) -> Option<&str>
Returns the configured OTLP logs endpoint, if any.
Sourcepub fn warnings(&self) -> &[InitWarning]
pub fn warnings(&self) -> &[InitWarning]
Returns any warnings generated during initialization.
Trait Implementations§
Source§impl Clone for InitSummary
impl Clone for InitSummary
Auto Trait Implementations§
impl Forget for InitSummary
impl Freeze for InitSummary
impl Move for InitSummary
impl RefUnwindSafe for InitSummary
impl Send for InitSummarywhere
RawVecInner: Send,
impl Sync for InitSummarywhere
RawVecInner: Sync,
impl Unpin for InitSummary
impl UnsafeUnpin for InitSummarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<InitWarning>: UnsafeUnpin,
impl UnwindSafe for InitSummarywhere
RawVecInner: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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