pub struct EventValidationConfig {
pub received_at: Option<DateTime<Utc>>,
pub max_secs_in_past: Option<i64>,
pub max_secs_in_future: Option<i64>,
pub transaction_timestamp_range: Option<Range<UnixTimestamp>>,
pub is_validated: bool,
}Expand description
Configuration for validate_event.
Fields§
§received_at: Option<DateTime<Utc>>The time at which the event was received in this Relay.
This timestamp is persisted into the event payload.
max_secs_in_past: Option<i64>The maximum amount of seconds an event can be dated in the past.
If the event’s timestamp is older, the received timestamp is assumed.
max_secs_in_future: Option<i64>The maximum amount of seconds an event can be predated into the future.
If the event’s timestamp lies further into the future, the received timestamp is assumed.
transaction_timestamp_range: Option<Range<UnixTimestamp>>Timestamp range in which a transaction must end.
Transactions that finish outside this range are invalid. The check is skipped if no range is provided.
is_validated: boolControls whether the event has been validated before, in which case disables validation.
By default, is_validated is disabled and event validation is run.
Similar to is_renormalize for normalization, sentry_relay may configure this value.
Trait Implementations§
Source§impl Debug for EventValidationConfig
impl Debug for EventValidationConfig
Source§impl Default for EventValidationConfig
impl Default for EventValidationConfig
Source§fn default() -> EventValidationConfig
fn default() -> EventValidationConfig
Auto Trait Implementations§
impl Freeze for EventValidationConfig
impl RefUnwindSafe for EventValidationConfig
impl Send for EventValidationConfig
impl Sync for EventValidationConfig
impl Unpin for EventValidationConfig
impl UnwindSafe for EventValidationConfig
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].