crashpad: add sha to sentry annotations

Change-Id: I7142da6d8fc61643512ff2ae6f581bf6795ab802
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
(cherry picked from commit ef6ab90d1c)
This commit is contained in:
Tim Jenssen
2023-03-06 05:42:59 +01:00
parent 75d7f1de6c
commit cd317ed49a

View File

@@ -466,6 +466,9 @@ bool startCrashpad(const QString &libexecPath, bool crashReportingEnabled)
std::map<std::string, std::string> annotations; std::map<std::string, std::string> annotations;
annotations["app-version"] = Core::Constants::IDE_VERSION_DISPLAY; annotations["app-version"] = Core::Constants::IDE_VERSION_DISPLAY;
annotations["qt-version"] = QT_VERSION_STR; annotations["qt-version"] = QT_VERSION_STR;
#ifdef IDE_REVISION
annotations["sha1"] = Core::Constants::IDE_REVISION_STR;
#endif
// Optional arguments to pass to the handler // Optional arguments to pass to the handler
std::vector<std::string> arguments; std::vector<std::string> arguments;