pub enum SentryLevel {
Debug,
Info,
Warning,
Error,
Fatal,
}Expand description
The levels of Sentry’s event API.
PHP: Utopia\Span\Exporter\Sentry\Level.
Variants§
Implementations§
Source§impl SentryLevel
impl SentryLevel
Sourcepub const fn from_span(level: Level) -> Self
pub const fn from_span(level: Level) -> Self
The Sentry level of a span level (warn is warning).
PHP: Sentry\Level::fromSpan($level).
use utopia_span::Level;
use utopia_span::exporter::SentryLevel;
assert_eq!(SentryLevel::from_span(Level::Warn).as_str(), "warning");use Utopia\Span\Exporter\Sentry\Level as SentryLevel;
use Utopia\Span\Level;
echo SentryLevel::fromSpan(Level::Warn)->value, "\n"; // warningTrait Implementations§
Source§impl Clone for SentryLevel
impl Clone for SentryLevel
impl Copy for SentryLevel
Source§impl Debug for SentryLevel
impl Debug for SentryLevel
impl Eq for SentryLevel
Source§impl Hash for SentryLevel
impl Hash for SentryLevel
Source§impl PartialEq for SentryLevel
impl PartialEq for SentryLevel
impl StructuralPartialEq for SentryLevel
Auto Trait Implementations§
impl Forget for SentryLevel
impl Freeze for SentryLevel
impl Move for SentryLevel
impl RefUnwindSafe for SentryLevel
impl Send for SentryLevel
impl Sync for SentryLevel
impl Unpin for SentryLevel
impl UnsafeUnpin for SentryLevel
impl UnwindSafe for SentryLevel
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.