[−][src]Struct replicante_util_iron::SentryMiddleware
Iron middleware that sends non-success responses to sentry.
- Responses with a status < 400 are ignored (2xx & 3xx).
- Responses with a status < 500 are warnings (4xx).
- Responses with all other codes are errors (5xx).
It is worth noting that handlers that fail with an IronError that carries a successful response (status < 400) will also not be logged.
Implementations
impl SentryMiddleware
[src]
pub fn new(status_above: u16) -> SentryMiddleware
[src]
Trait Implementations
impl AfterMiddleware for SentryMiddleware
[src]
fn after(
&self,
request: &mut Request,
response: Response
) -> IronResult<Response>
[src]
&self,
request: &mut Request,
response: Response
) -> IronResult<Response>
fn catch(&self, request: &mut Request, error: IronError) -> IronResult<Response>
[src]
impl Default for SentryMiddleware
[src]
fn default() -> SentryMiddleware
[src]
Auto Trait Implementations
impl RefUnwindSafe for SentryMiddleware
impl Send for SentryMiddleware
impl Sync for SentryMiddleware
impl Unpin for SentryMiddleware
impl UnwindSafe for SentryMiddleware
Blanket Implementations
impl<F> AfterMiddleware for F where
F: Send + Sync + 'static + Fn(&mut Request, Response) -> Result<Response, IronError>,
[src]
F: Send + Sync + 'static + Fn(&mut Request, Response) -> Result<Response, IronError>,
fn after(&self, req: &mut Request, res: Response) -> Result<Response, IronError>
[src]
fn catch(&self, &mut Request, err: IronError) -> Result<Response, IronError>
[src]
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,