feat(BRIDGE-238): Added host information to sentry events; new sentry event for keychain issues

This commit is contained in:
Atanas Janeshliev
2024-10-25 16:40:46 +02:00
parent 810be2d423
commit 4d2b328589
7 changed files with 71 additions and 28 deletions

View File

@ -21,18 +21,13 @@
package sentry
import (
"github.com/elastic/go-sysinfo"
"github.com/elastic/go-sysinfo/types"
"golang.org/x/sys/unix"
)
const translatedProcDarwin = "sysctl.proc_translated"
func getHostArch() string {
host, err := sysinfo.Host()
if err != nil {
return "not-detected"
}
func getHostArch(host types.Host) string {
// It is not possible to retrieve real hardware architecture once using
// rosetta. But it is possible to detect the process translation if
// rosetta is used.