logo
pub struct Transaction<'a> {
Show 13 fields 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, Global>, pub extra: BTreeMap<String, Value, Global>, 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, Global>, pub request: Option<Request>,
}
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.

tags: BTreeMap<String, String, Global>

Optional tags to be attached to the event.

extra: BTreeMap<String, Value, Global>

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, Global>

Optional contexts.

request: Option<Request>

Optionally HTTP request data to be sent along.

Implementations

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

Creates a fully owned version of the transaction.

Finalizes the transaction to be dispatched.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.