Skip to content

Commit 0be5086

Browse files
author
Xavier Basty
authored
feat: add msg_id to analytics exports (#156)
1 parent b8f2a44 commit 0be5086

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/analytics/message_info.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use {parquet_derive::ParquetRecordWriter, serde::Serialize, std::sync::Arc};
33
#[derive(Debug, Clone, Serialize, ParquetRecordWriter)]
44
#[serde(rename_all = "camelCase")]
55
pub struct MessageInfo {
6+
pub msg_id: Arc<str>,
67
pub region: Option<Arc<str>>,
78
pub country: Option<Arc<str>>,
89
pub continent: Option<Arc<str>>,

src/handlers/push_message.rs

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ pub async fn handler(
183183
);
184184

185185
let msg = MessageInfo {
186+
msg_id: body.id.into(),
186187
region: region.map(|r| Arc::from(r.join(", "))),
187188
country,
188189
continent,

0 commit comments

Comments
 (0)