[−][src]Struct sentry_core::ClientOptions
Configuration settings for the client.
These options are explained in more detail in the general sentry documentation.
Examples
let _options = sentry::ClientOptions { debug: true, ..Default::default() };
Fields
dsn: Option<Dsn>The DSN to use. If not set the client is effectively disabled.
debug: boolEnables debug mode.
In debug mode debug information is printed to stderr to help you understand what
sentry is doing. When the log feature is enabled, Sentry will instead
log to the sentry logger independently of this flag with the Debug level.
release: Option<Cow<'static, str>>The release to be sent with events.
environment: Option<Cow<'static, str>>The environment to be sent with events.
sample_rate: f32The sample rate for event submission. (0.0 - 1.0, defaults to 1.0)
Maximum number of breadcrumbs. (defaults to 100)
attach_stacktrace: boolAttaches stacktraces to messages.
send_default_pii: boolIf turned on some default PII informat is attached.
server_name: Option<Cow<'static, str>>The server name to be reported.
in_app_include: Vec<&'static str>Module prefixes that are always considered "in_app".
in_app_exclude: Vec<&'static str>Module prefixes that are never "in_app".
integrations: Vec<Arc<dyn Integration>>A list of integrations to enable.
default_integrations: boolWhether to add default integrations.
before_send: Option<Arc<dyn Fn(Event<'static>) -> Option<Event<'static>> + Send + Sync>>Callback that is executed before event sending.
Callback that is executed for each Breadcrumb being added.
transport: Option<Arc<dyn TransportFactory>>The transport to use.
This is typically either a boxed function taking the client options by
reference and returning a Transport, a boxed Arc<Transport> or
alternatively the DefaultTransportFactory.
http_proxy: Option<Cow<'static, str>>An optional HTTP proxy to use.
This will default to the http_proxy environment variable.
https_proxy: Option<Cow<'static, str>>An optional HTTPS proxy to use.
This will default to the HTTPS_PROXY environment variable
or http_proxy if that one exists.
shutdown_timeout: DurationThe timeout on client drop for draining events on shutdown.
extra_border_frames: Vec<&'static str>Border frames which indicate a border from a backtrace to useless internals. Some are automatically included.
trim_backtraces: boolAutomatically trim backtraces of junk before sending. (defaults to true)
user_agent: Cow<'static, str>The user agent that should be reported.
Implementations
impl ClientOptions[src]
pub fn new() -> Self[src]
Creates new Options.
pub fn add_integration<I: Integration>(self, integration: I) -> Self[src]
Adds a configured integration to the options.
Examples
struct MyIntegration; impl sentry::Integration for MyIntegration {} let options = sentry::ClientOptions::new().add_integration(MyIntegration); assert_eq!(options.integrations.len(), 1);
Trait Implementations
impl Clone for ClientOptions[src]
fn clone(&self) -> ClientOptions[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ClientOptions[src]
impl Default for ClientOptions[src]
fn default() -> ClientOptions[src]
impl<T: IntoDsn> From<(T, ClientOptions)> for ClientOptions[src]
fn from((into_dsn, opts): (T, ClientOptions)) -> ClientOptions[src]
impl<T: IntoDsn> From<T> for ClientOptions[src]
fn from(into_dsn: T) -> ClientOptions[src]
Auto Trait Implementations
impl !RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl !UnwindSafe for ClientOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,