diff --git a/src/proxy/compute/data_collection/components.rs b/src/proxy/compute/data_collection/components.rs index da2cc8f..e632b1c 100644 --- a/src/proxy/compute/data_collection/components.rs +++ b/src/proxy/compute/data_collection/components.rs @@ -275,10 +275,9 @@ pub async fn send_data_collection(p: &Payload) -> anyhow::Result<()> { .unwrap_or_default(), session_count: p.session.clone().unwrap_or_default().session_count, session_start: p.session.clone().unwrap_or_default().session_start, - first_seen: p.session.clone().unwrap_or_default().first_seen.to_string(), - last_seen: p.session.clone().unwrap_or_default().last_seen.to_string(), + first_seen: p.session.clone().unwrap_or_default().first_seen.timestamp(), + last_seen: p.session.clone().unwrap_or_default().last_seen.timestamp(), }, - destinations: Vec::new(), }; for cfg in &config::get().components.data_collection { diff --git a/wit/protocols.wit b/wit/protocols.wit index e96dd60..8141510 100644 --- a/wit/protocols.wit +++ b/wit/protocols.wit @@ -1,4 +1,4 @@ -package edgee:protocols@0.1.1; +package edgee:protocols@0.1.2; world data-collection { export provider: interface { @@ -18,7 +18,6 @@ world data-collection { campaign: campaign, client: client, session: session, - destinations: list>, } record page-event { @@ -82,8 +81,8 @@ world data-collection { previous-session-id: string, session-count: u32, session-start: bool, - first-seen: string, - last-seen: string, + first-seen: s64, + last-seen: s64, } record edgee-request {