[][src]Struct sentry_types::protocol::v7::Transaction

pub struct Transaction<'a> {
    pub event_id: Uuid,
    pub name: Option<String>,
    pub tags: Map<String, String>,
    pub sdk: Option<Cow<'a, ClientSdkInfo>>,
    pub platform: Cow<'a, str>,
    pub timestamp: Option<DateTime<Utc>>,
    pub start_timestamp: DateTime<Utc>,
    pub spans: Vec<Span>,
    pub contexts: Map<String, Context>,
}

Represents a tracing transaction.

Fields

event_id: Uuid

The ID of the event

name: Option<String>

The transaction name.

tags: Map<String, String>

Optional tags to be attached to the event.

sdk: Option<Cow<'a, ClientSdkInfo>>

SDK metadata

platform: Cow<'a, str>

A platform identifier for this event.

timestamp: Option<DateTime<Utc>>

The end time of the transaction.

start_timestamp: DateTime<Utc>

The start time of the transaction.

spans: Vec<Span>

The collection of finished spans part of this transaction.

contexts: Map<String, Context>

Optional contexts.

Implementations

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

pub fn new() -> Transaction<'a>[src]

Creates a new span transaction the current timestamp and random id.

pub fn into_owned(self) -> Transaction<'static>[src]

Creates a fully owned version of the transaction.

pub fn finish(&mut self)[src]

Finalizes the transaction to be dispatched.

Trait Implementations

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

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

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

impl<'de, 'a> Deserialize<'de> for Transaction<'a>[src]

impl<'a> Display for Transaction<'a>[src]

impl From<Transaction<'static>> for EnvelopeItem[src]

impl From<Transaction<'static>> for Envelope[src]

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

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

impl<'a> StructuralPartialEq for Transaction<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Transaction<'a>[src]

impl<'a> Send for Transaction<'a>[src]

impl<'a> Sync for Transaction<'a>[src]

impl<'a> Unpin for Transaction<'a>[src]

impl<'a> UnwindSafe for Transaction<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.