pub struct SignalEvent {Show 25 fields
pub event_type: SignalEventType,
pub event_name: Option<String>,
pub correlation_id: Option<String>,
pub session_id: Option<Uuid>,
pub visitor_id: Option<String>,
pub user_id: Option<Uuid>,
pub tenant_id: Option<Uuid>,
pub properties: Value,
pub page_url: Option<String>,
pub referrer: Option<String>,
pub function_name: Option<String>,
pub function_kind: Option<String>,
pub duration_ms: Option<i32>,
pub status: Option<String>,
pub error_message: Option<String>,
pub error_stack: Option<String>,
pub error_context: Option<Value>,
pub client_ip: Option<String>,
pub user_agent: Option<String>,
pub device_type: Option<String>,
pub browser: Option<String>,
pub os: Option<String>,
pub utm: Option<UtmParams>,
pub is_bot: bool,
pub timestamp: DateTime<Utc>,
}Expand description
A single signal event ready for collection.
Fields§
§event_type: SignalEventType§event_name: Option<String>§correlation_id: Option<String>§session_id: Option<Uuid>§visitor_id: Option<String>§user_id: Option<Uuid>§tenant_id: Option<Uuid>§properties: Value§page_url: Option<String>§referrer: Option<String>§function_name: Option<String>§function_kind: Option<String>§duration_ms: Option<i32>§status: Option<String>§error_message: Option<String>§error_stack: Option<String>§error_context: Option<Value>§client_ip: Option<String>§user_agent: Option<String>§device_type: Option<String>§browser: Option<String>§os: Option<String>§utm: Option<UtmParams>§is_bot: bool§timestamp: DateTime<Utc>Implementations§
Source§impl SignalEvent
impl SignalEvent
Sourcepub fn rpc_call(
function_name: &str,
function_kind: &str,
duration_ms: i32,
success: bool,
user_id: Option<Uuid>,
tenant_id: Option<Uuid>,
correlation_id: Option<String>,
client_ip: Option<String>,
user_agent: Option<String>,
visitor_id: Option<String>,
is_bot: bool,
) -> Self
pub fn rpc_call( function_name: &str, function_kind: &str, duration_ms: i32, success: bool, user_id: Option<Uuid>, tenant_id: Option<Uuid>, correlation_id: Option<String>, client_ip: Option<String>, user_agent: Option<String>, visitor_id: Option<String>, is_bot: bool, ) -> Self
Create an RPC call event from function execution metadata.
Trait Implementations§
Source§impl Clone for SignalEvent
impl Clone for SignalEvent
Source§fn clone(&self) -> SignalEvent
fn clone(&self) -> SignalEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalEvent
impl Debug for SignalEvent
Source§impl<'de> Deserialize<'de> for SignalEvent
impl<'de> Deserialize<'de> for SignalEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignalEvent
impl RefUnwindSafe for SignalEvent
impl Send for SignalEvent
impl Sync for SignalEvent
impl Unpin for SignalEvent
impl UnsafeUnpin for SignalEvent
impl UnwindSafe for SignalEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more