pub struct Options {
pub cardinality_limiter_mode: CardinalityLimiterMode,
pub cardinality_limiter_error_sample_rate: f32,
pub metric_bucket_set_encodings: BucketEncodings,
pub metric_bucket_dist_encodings: BucketEncodings,
pub metric_stats_rollout_rate: f32,
pub span_extraction_sample_rate: Option<f32>,
pub http_span_allowed_hosts: Vec<String>,
/* private fields */
}
Expand description
All options passed down from Sentry to Relay.
Fields§
§cardinality_limiter_mode: CardinalityLimiterMode
Kill switch for controlling the cardinality limiter.
cardinality_limiter_error_sample_rate: f32
Sample rate for Cardinality Limiter Sentry errors.
Rate needs to be between 0.0
and 1.0
.
If set to 1.0
all cardinality limiter rejections will be logged as a Sentry error.
metric_bucket_set_encodings: BucketEncodings
Metric bucket encoding configuration for sets by metric namespace.
metric_bucket_dist_encodings: BucketEncodings
Metric bucket encoding configuration for distributions by metric namespace.
metric_stats_rollout_rate: f32
Rollout rate for metric stats.
Rate needs to be between 0.0
and 1.0
.
If set to 1.0
all organizations will have metric stats enabled.
span_extraction_sample_rate: Option<f32>
Overall sampling of span extraction.
This number represents the fraction of transactions for which
spans are extracted. It applies on top of crate::Feature::ExtractCommonSpanMetricsFromEvent
,
so both feature flag and sample rate need to be enabled to get any spans extracted.
None
is the default and interpreted as a value of 1.0 (extract everything).
Note: Any value below 1.0 will cause the product to break, so use with caution.
http_span_allowed_hosts: Vec<String>
List of values on span description that are allowed to be sent to Sentry without being scrubbed.
At this point, it doesn’t accept IP addresses in CIDR format.. yet.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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>,
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
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)
clone_to_uninit
)§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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more