add basic crash analytics and very light telemetry to dioxus-cli (#4224)
* wip * wip: basic telemetry * fix merge * keep errors for telemetry * fix upload when queued events are empty * add per session id and keep track of build timing * keep track of what commands are run * capture panics * keep track of panics * better path stripping * better tracing error telemetry * only sync every week and check settings before sending any telemetry * keep track of the args passed to commands * anonymize commands * more error tolerant * wip * wip * wip * merge cnflict * other merg conflict * migrate everything from telemetry to logging * update docs * wip... about to merge trace controller * lil bit more refactor to clean up tracer * more performant log writer * cleanup ci detecting * wire up to posthog * re-uploads work * yoink out the anon from each file * cleanup sig * lil bit cleaner * dont write empty files * wip log handler * fmt * cleanup logging of backtraces * add proper backtrace support * use stable reporter * adhere to posthog format * fix stacktraces * use anyhow for capturing backtraces * I think we're done? * cleanup logging * properly collect! * move out keycode handling * she works * typo * add extra fields * fix cargo doc --------- Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
1 parent
a610aaefc3
commit
e43bf05b69
30 files changed
+1748
-441
No files matched your search
@@ -424,7 +424,6 @@ impl AppBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
tracing::error!(?err, json = ?StructuredOutput::Error { message: err.to_string() });
|
||||
return Err(err);
|
||||
}
|
||||
BuilderUpdate::StdoutReceived { .. } => {}
|
||||
|
||||
@@ -38,10 +38,13 @@ pub enum BuilderUpdate {
|
||||
message: Diagnostic,
|
||||
},
|
||||
|
||||
/// The build completed successfully and the artifacts are ready. The artifacts are dependent on
|
||||
/// the build mode (fat vs thin vs base).
|
||||
BuildReady {
|
||||
bundle: BuildArtifacts,
|
||||
},
|
||||
|
||||
/// The build failed. This might be because of a compilation error, or an error internal to DX.
|
||||
BuildFailed {
|
||||
err: Error,
|
||||
},
|
||||
@@ -62,6 +65,7 @@ pub enum BuilderUpdate {
|
||||
msg: String,
|
||||
},
|
||||
|
||||
/// The running app (DUT) has exited and is no longer running.
|
||||
ProcessExited {
|
||||
status: ExitStatus,
|
||||
},
|
||||
|
||||
@@ -1943,7 +1943,7 @@ impl BuildRequest {
|
||||
}
|
||||
}
|
||||
LinkerFlavor::Unsupported => {
|
||||
tracing::error!("Unsupported platform for fat linking");
|
||||
tracing::error!("Unsupported platform for fat linking: {}", self.triple);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user