Struct sentry_core::protocol::Transaction
source · [−]pub struct Transaction<'a> {
pub event_id: Uuid,
pub name: Option<String>,
pub release: Option<Cow<'a, str>>,
pub environment: Option<Cow<'a, str>>,
pub tags: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
pub sdk: Option<Cow<'a, ClientSdkInfo>>,
pub platform: Cow<'a, str>,
pub timestamp: Option<SystemTime>,
pub start_timestamp: SystemTime,
pub spans: Vec<Span, Global>,
pub contexts: BTreeMap<String, Context>,
}
Expand description
Represents a tracing transaction.
Fields
event_id: Uuid
The ID of the event
name: Option<String>
The transaction name.
release: Option<Cow<'a, str>>
A release identifier.
environment: Option<Cow<'a, str>>
An optional environment identifier.
Optional tags to be attached to the event.
extra: BTreeMap<String, Value>
Optional extra information to be sent with the event.
sdk: Option<Cow<'a, ClientSdkInfo>>
SDK metadata
platform: Cow<'a, str>
A platform identifier for this event.
timestamp: Option<SystemTime>
The end time of the transaction.
start_timestamp: SystemTime
The start time of the transaction.
spans: Vec<Span, Global>
The collection of finished spans part of this transaction.
contexts: BTreeMap<String, Context>
Optional contexts.
Implementations
Creates a new span transaction the current timestamp and random id.
Creates a fully owned version of the transaction.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Transaction<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Transaction<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Transaction<'a>
impl<'a> Send for Transaction<'a>
impl<'a> Sync for Transaction<'a>
impl<'a> Unpin for Transaction<'a>
impl<'a> UnwindSafe for Transaction<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more