[−][src]Struct ckb_sentry_core::protocol::Transaction
Represents a tracing transaction.
Fields
event_id: Uuid
The ID of the event
name: Option<String>
The transaction name.
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, Global>
The collection of finished spans part of this transaction.
contexts: BTreeMap<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]
pub fn clone(&self) -> Transaction<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for Transaction<'a>
[src]
impl<'a> Default for Transaction<'a>
[src]
pub fn default() -> Transaction<'a>
[src]
impl<'de, 'a> Deserialize<'de> for Transaction<'a>
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Transaction<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Transaction<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<'a> Display for Transaction<'a>
[src]
impl From<Transaction<'static>> for EnvelopeItem
[src]
pub fn from(session: Transaction<'static>) -> EnvelopeItem
[src]
impl From<Transaction<'static>> for Envelope
[src]
pub fn from(transaction: Transaction<'static>) -> Envelope
[src]
impl<'a> PartialEq<Transaction<'a>> for Transaction<'a>
[src]
pub fn eq(&self, other: &Transaction<'a>) -> bool
[src]
pub fn ne(&self, other: &Transaction<'a>) -> bool
[src]
impl<'a> Serialize for Transaction<'a>
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,