Skip to content

Commit fa6a531

Browse files
committed
add analytics error log for api server
Signed-off-by: Yujong Lee <yujonglee.dev@gmail.com>
1 parent 6413834 commit fa6a531

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/llm-proxy/src/analytics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ impl AnalyticsReporter for AnalyticsClient {
5757
);
5858
event.generation_id.clone()
5959
});
60-
let _ = self.event(distinct_id, payload.build()).await;
60+
if let Err(e) = self.event(distinct_id, payload.build()).await {
61+
tracing::warn!("analytics event error: {e}");
62+
}
6163
})
6264
}
6365
}

crates/transcribe-proxy/src/analytics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ impl SttAnalyticsReporter for AnalyticsClient {
4242
);
4343
fallback_id
4444
});
45-
let _ = self.event(distinct_id, payload.build()).await;
45+
if let Err(e) = self.event(distinct_id, payload.build()).await {
46+
tracing::warn!("analytics event error: {e}");
47+
}
4648
})
4749
}
4850
}

0 commit comments

Comments
 (0)