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 span_extraction_sample_rate: Option<f32>,
pub http_span_allowed_hosts: Vec<String>,
pub replay_relay_snuba_publish_disabled_sample_rate: f32,
/* 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.
span_extraction_sample_rate: Option<f32>
Overall sampling of span extraction.
This number represents the fraction of transactions for which spans are 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.
replay_relay_snuba_publish_disabled_sample_rate: f32
Disables Relay from sending replay-events to Snuba.
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,
§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