pub struct SentryConfig {
pub dsn: Option<Dsn>,
pub enabled: bool,
pub environment: Option<Cow<'static, str>>,
pub server_name: Option<Cow<'static, str>>,
pub default_tags: Option<BTreeMap<String, String>>,
pub _crash_db: Option<PathBuf>,
}
Expand description
Controls internal reporting to Sentry.
Fields§
§dsn: Option<Dsn>
The DSN
specifying the Project to report to.
enabled: bool
Enables reporting to Sentry.
environment: Option<Cow<'static, str>>
Sets the environment for this service.
server_name: Option<Cow<'static, str>>
Sets the server name for this service.
This is overridden by the RELAY_SERVER_NAME
environment variable.
Add defaults tags to the events emitted by Relay
_crash_db: Option<PathBuf>
Internal. Enables crash handling and sets the absolute path to where minidumps should be cached on disk. The path is created if it doesn’t exist. Path must be UTF-8.
Implementations§
source§impl SentryConfig
impl SentryConfig
sourcepub fn enabled_dsn(&self) -> Option<&Dsn>
pub fn enabled_dsn(&self) -> Option<&Dsn>
Returns a reference to the DSN
if Sentry is enabled.
Trait Implementations§
source§impl Clone for SentryConfig
impl Clone for SentryConfig
source§fn clone(&self) -> SentryConfig
fn clone(&self) -> SentryConfig
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 moresource§impl Debug for SentryConfig
impl Debug for SentryConfig
source§impl Default for SentryConfig
impl Default for SentryConfig
source§impl<'de> Deserialize<'de> for SentryConfigwhere
SentryConfig: Default,
impl<'de> Deserialize<'de> for SentryConfigwhere
SentryConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SentryConfig
impl RefUnwindSafe for SentryConfig
impl Send for SentryConfig
impl Sync for SentryConfig
impl Unpin for SentryConfig
impl UnwindSafe for SentryConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)