mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
chore: fill sentry user.id with hostname.
This commit is contained in:
@ -51,6 +51,9 @@ void setSentryReportScope() {
|
|||||||
sentry_set_tag("Version", PROJECT_REVISION);
|
sentry_set_tag("Version", PROJECT_REVISION);
|
||||||
sentry_set_tag("HostArch", QSysInfo::currentCpuArchitecture().toUtf8());
|
sentry_set_tag("HostArch", QSysInfo::currentCpuArchitecture().toUtf8());
|
||||||
sentry_set_tag("server_name", getProtectedHostname());
|
sentry_set_tag("server_name", getProtectedHostname());
|
||||||
|
sentry_value_t user = sentry_value_new_object();
|
||||||
|
sentry_value_set_by_key(user, "id", sentry_value_new_string(getProtectedHostname()));
|
||||||
|
sentry_set_user(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
sentry_options_t* newSentryOptions(const char *sentryDNS, const char *cacheDir) {
|
sentry_options_t* newSentryOptions(const char *sentryDNS, const char *cacheDir) {
|
||||||
|
|||||||
@ -61,7 +61,7 @@ func init() { //nolint:gochecknoinits
|
|||||||
|
|
||||||
sentry.ConfigureScope(func(scope *sentry.Scope) {
|
sentry.ConfigureScope(func(scope *sentry.Scope) {
|
||||||
scope.SetFingerprint([]string{"{{ default }}"})
|
scope.SetFingerprint([]string{"{{ default }}"})
|
||||||
scope.SetTag("UserID", "not-defined")
|
scope.SetUser(sentry.User{ID: getProtectedHostname()})
|
||||||
})
|
})
|
||||||
|
|
||||||
sentry.Logger = log.New(
|
sentry.Logger = log.New(
|
||||||
|
|||||||
Reference in New Issue
Block a user