Skip to content

Commit f7e240e

Browse files
danielsngleocadie
authored andcommitted
[crashtracker] Don't send the same stack trace twice
1 parent f1b4867 commit f7e240e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crashtracker/src/crash_info/telemetry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ impl TelemetryCrashUploader {
108108

109109
let message = serde_json::to_string(crash_info)?;
110110

111-
let stack_trace = serde_json::to_string(&crash_info.error.stack)?;
112111
let tags = extract_crash_info_tags(crash_info).unwrap_or_default();
113112

114113
let tracer_time = crash_info.timestamp.parse::<DateTime<Utc>>().map_or_else(
@@ -131,7 +130,8 @@ impl TelemetryCrashUploader {
131130
payload: &data::Payload::Logs(vec![data::Log {
132131
message,
133132
level: LogLevel::Error,
134-
stack_trace: Some(stack_trace),
133+
// The stacktrace is already included in the `crash_info` inside `message`.
134+
stack_trace: None,
135135
tags,
136136
is_sensitive: true,
137137
count: 1,

0 commit comments

Comments
 (0)