Struct mz_ore::tracing::SentryConfig
source · pub struct SentryConfig<F> {
pub dsn: String,
pub environment: Option<String>,
pub tags: BTreeMap<String, String>,
pub event_filter: F,
}
Available on crate feature
tracing_
only.Expand description
Configures Sentry reporting.
Fields§
§dsn: String
Sentry data source name to submit events to.
environment: Option<String>
The environment name to report to Sentry.
If unset, the Sentry SDK will attempt to read the value from the
SENTRY_ENVIRONMENT
environment variable.
Additional tags to include on each Sentry event/exception.
event_filter: F
A filter that classifies events before sending them to Sentry.
Trait Implementations§
source§impl<F: Clone> Clone for SentryConfig<F>
impl<F: Clone> Clone for SentryConfig<F>
source§fn clone(&self) -> SentryConfig<F>
fn clone(&self) -> SentryConfig<F>
Returns a copy 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 moreAuto Trait Implementations§
impl<F> Freeze for SentryConfig<F>where
F: Freeze,
impl<F> RefUnwindSafe for SentryConfig<F>where
F: RefUnwindSafe,
impl<F> Send for SentryConfig<F>where
F: Send,
impl<F> Sync for SentryConfig<F>where
F: Sync,
impl<F> Unpin for SentryConfig<F>where
F: Unpin,
impl<F> UnwindSafe for SentryConfig<F>where
F: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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