pub struct SignalsConfig {
pub enabled: bool,
pub auto_capture: bool,
pub diagnostics: bool,
pub session_timeout_mins: u32,
pub retention_days: u32,
pub anonymize_ip: bool,
pub batch_size: usize,
pub flush_interval_ms: u64,
pub excluded_functions: Vec<String>,
pub bot_detection: bool,
}Expand description
Signals configuration for built-in product analytics and frontend diagnostics.
Captures user behavior, acquisition channels, feature usage, and frontend errors without cookies or persistent client-side state (GDPR-compliant).
[signals]
enabled = true
auto_capture = true
diagnostics = true
session_timeout_mins = 30
retention_days = 90Fields§
§enabled: boolEnable the signals pipeline (event ingestion, auto-capture, dashboards).
auto_capture: boolAuto-capture RPC calls as events without user code.
diagnostics: boolCapture frontend errors, failed RPCs, and breadcrumbs for reproduction.
session_timeout_mins: u32Inactivity timeout before closing a session (minutes).
retention_days: u32Days to retain event data before partition cleanup.
anonymize_ip: boolHash client IP + UA into a daily-rotating visitor ID instead of storing raw IP.
batch_size: usizeMax events per batch INSERT.
flush_interval_ms: u64Max milliseconds between flushes of the event buffer.
excluded_functions: Vec<String>Function names to exclude from auto-capture (exact match).
bot_detection: boolTag bot traffic via UA detection (visible in dashboard filter).
Trait Implementations§
Source§impl Clone for SignalsConfig
impl Clone for SignalsConfig
Source§fn clone(&self) -> SignalsConfig
fn clone(&self) -> SignalsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignalsConfig
impl Debug for SignalsConfig
Source§impl Default for SignalsConfig
impl Default for SignalsConfig
Source§impl<'de> Deserialize<'de> for SignalsConfig
impl<'de> Deserialize<'de> for SignalsConfig
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>,
Auto Trait Implementations§
impl Freeze for SignalsConfig
impl RefUnwindSafe for SignalsConfig
impl Send for SignalsConfig
impl Sync for SignalsConfig
impl Unpin for SignalsConfig
impl UnsafeUnpin for SignalsConfig
impl UnwindSafe for SignalsConfig
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
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>
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>
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