Struct actix_tools::sentry::sentry_client::protocol::Event [−]
pub struct Event<'a> {
pub id: Option<Uuid>,
pub level: Level,
pub fingerprint: Cow<'a, [Cow<'a, str>]>,
pub culprit: Option<String>,
pub transaction: Option<String>,
pub message: Option<String>,
pub logentry: Option<LogEntry>,
pub logger: Option<String>,
pub modules: LinkedHashMap<String, String, RandomState>,
pub platform: Cow<'a, str>,
pub timestamp: Option<DateTime<Utc>>,
pub server_name: Option<Cow<'a, str>>,
pub release: Option<Cow<'a, str>>,
pub dist: Option<Cow<'a, str>>,
pub repos: LinkedHashMap<String, RepoReference, RandomState>,
pub environment: Option<Cow<'a, str>>,
pub user: Option<User>,
pub request: Option<Request>,
pub contexts: LinkedHashMap<String, Context, RandomState>,
pub breadcrumbs: Vec<Breadcrumb>,
pub exceptions: Vec<Exception>,
pub stacktrace: Option<Stacktrace>,
pub template_info: Option<TemplateInfo>,
pub threads: Vec<Thread>,
pub tags: LinkedHashMap<String, String, RandomState>,
pub extra: LinkedHashMap<String, Value, RandomState>,
pub debug_meta: Cow<'a, DebugMeta>,
pub sdk_info: Option<Cow<'a, ClientSdkInfo>>,
pub other: LinkedHashMap<String, Value, RandomState>,
}Represents a full event for Sentry.
Fields
id: Option<Uuid>
The ID of the event
level: Level
The level of the event (defaults to error)
fingerprint: Cow<'a, [Cow<'a, str>]>
An optional fingerprint configuration to override the default.
culprit: Option<String>
The culprit of the event.
transaction: Option<String>
The transaction name of the event.
message: Option<String>
A message to be sent with the event.
logentry: Option<LogEntry>
Optionally a log entry that can be used instead of the message for more complex cases.
logger: Option<String>
Optionally the name of the logger that created this event.
modules: LinkedHashMap<String, String, RandomState>
Optionally a name to version mapping of installed modules.
platform: Cow<'a, str>
A platform identifier for this event.
timestamp: Option<DateTime<Utc>>
The timestamp of when the event was created.
This can be set to None in which case the server will set a timestamp.
server_name: Option<Cow<'a, str>>
Optionally the server (or device) name of this event.
release: Option<Cow<'a, str>>
A release identifier.
dist: Option<Cow<'a, str>>
An optional distribution identifer.
repos: LinkedHashMap<String, RepoReference, RandomState>
Repository references
environment: Option<Cow<'a, str>>
An optional environment identifier.
user: Option<User>
Optionally user data to be sent along.
request: Option<Request>
Optionally HTTP request data to be sent along.
contexts: LinkedHashMap<String, Context, RandomState>
Optional contexts.
List of breadcrumbs to send along.
exceptions: Vec<Exception>
Exceptions to be attached (one or multiple if chained).
stacktrace: Option<Stacktrace>
A single stacktrace (deprecated)
template_info: Option<TemplateInfo>
Simplified template error location info
threads: Vec<Thread>
A list of threads.
Optional tags to be attached to the event.
extra: LinkedHashMap<String, Value, RandomState>
Optional extra information to be sent with the event.
debug_meta: Cow<'a, DebugMeta>
Debug meta information.
sdk_info: Option<Cow<'a, ClientSdkInfo>>
SDK metadata
other: LinkedHashMap<String, Value, RandomState>
Additional arbitrary keys for forwards compatibility.
Methods
impl<'a> Event<'a>
impl<'a> Event<'a>pub fn new() -> Event<'a>
pub fn new() -> Event<'a>Creates a new event with the current timestamp and random id.
pub fn into_owned(self) -> Event<'static>
pub fn into_owned(self) -> Event<'static>Creates a fully owned version of the event.
Trait Implementations
impl<'a> Serialize for Event<'a>
impl<'a> Serialize for Event<'a>fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'a> Display for Event<'a>
impl<'a> Display for Event<'a>fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'a> Clone for Event<'a>
impl<'a> Clone for Event<'a>fn clone(&self) -> Event<'a>
fn clone(&self) -> Event<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'a> Default for Event<'a>
impl<'a> Default for Event<'a>impl<'a> Debug for Event<'a>
impl<'a> Debug for Event<'a>fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de, 'a> Deserialize<'de> for Event<'a> where
Event<'a>: Default,
impl<'de, 'a> Deserialize<'de> for Event<'a> where
Event<'a>: Default, fn deserialize<__D>(
__deserializer: __D
) -> Result<Event<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl<'a> PartialEq<Event<'a>> for Event<'a>
impl<'a> PartialEq<Event<'a>> for Event<'a>