Add backtrace hash to collab server panic api (#3692)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons authored and GitHub committed 2023-12-18 11:21:41 -05:00
commit a623929340
2 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -117,12 +117,13 @@ struct CreateUserResponse {
struct Panic {
version: String,
release_channel: String,
backtrace_hash: String,
text: String,
}
#[instrument(skip(panic))]
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, text = %panic.text, "panic report");
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, backtrace_hash = %panic.backtrace_hash, text = %panic.text, "panic report");
Ok(())
}
+3 -1
View File
@@ -116,12 +116,14 @@ struct CreateUserResponse {
#[derive(Debug, Deserialize)]
struct Panic {
version: String,
release_channel: String,
backtrace_hash: String,
text: String,
}
#[instrument(skip(panic))]
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
tracing::error!(version = %panic.version, text = %panic.text, "panic report");
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, backtrace_hash = %panic.backtrace_hash, text = %panic.text, "panic report");
Ok(())
}