Write panics and crashes to snowflake (#28284)

This will let us create a better crashes dashboard, using Hex.

Release Notes:

- N/A
This commit is contained in:
Max Brunsfeld 2025-04-07 15:50:16 -07:00 committed by GitHub
parent 448db20eaa
commit 6220b86f94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 6 deletions

View file

@ -591,7 +591,7 @@ async fn check_usage_limit(
SnowflakeRow::new(
"Language Model Rate Limited",
claims.metrics_id,
Some(claims.metrics_id),
claims.is_staff,
claims.system_id.clone(),
json!({
@ -719,7 +719,7 @@ impl<S> Drop for TokenCountingStream<S> {
});
SnowflakeRow::new(
"Language Model Used",
claims.metrics_id,
Some(claims.metrics_id),
claims.is_staff,
claims.system_id.clone(),
properties,