Struct sentry::protocol::Event [] [src]

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

The ID of the event

The level of the event (defaults to error)

An optional fingerprint configuration to override the default.

The culprit of the event.

The transaction name of the event.

A message to be sent with the event.

Optionally a log entry that can be used instead of the message for more complex cases.

Optionally the name of the logger that created this event.

Optionally a name to version mapping of installed modules.

A platform identifier for this event.

The timestamp of when the event was created.

This can be set to None in which case the server will set a timestamp.

Optionally the server (or device) name of this event.

A release identifier.

An optional distribution identifer.

Repository references

An optional environment identifier.

Optionally user data to be sent along.

Optionally HTTP request data to be sent along.

Optional contexts.

List of breadcrumbs to send along.

Exceptions to be attached (one or multiple if chained).

A single stacktrace (deprecated)

Simplified template error location info

A list of threads.

Optional tags to be attached to the event.

Optional extra information to be sent with the event.

Debug meta information.

SDK metadata

Additional arbitrary keys for forwards compatibility.

Methods

impl<'a> Event<'a>
[src]

[src]

Creates a new event with the current timestamp and random id.

[src]

Creates a fully owned version of the event.

Trait Implementations

impl<'a> PartialEq<Event<'a>> for Event<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'de, 'a> Deserialize<'de> for Event<'a> where
    Event<'a>: Default
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'a> Clone for Event<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Serialize for Event<'a>
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'a> Debug for Event<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Default for Event<'a>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a> Send for Event<'a>

impl<'a> Sync for Event<'a>