Skip to content

Commit

Permalink
misc: support sentry unique user counting
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Aug 30, 2023
1 parent 83bdf0e commit e9eb113
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/base/zapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ void common_main_setup(App id, int argc, char **argv)
break;
}
atexit(sentry_atexit);

// Sentry backend is configured to scrub the IP. This just gets us a rough unique user count.
sentry_value_t user = sentry_value_new_object();
sentry_value_set_by_key(user, "ip_address", sentry_value_new_string("{{auto}}"));
sentry_set_user(user);
#endif

// This allows for opening a binary from Finder and having ZC be in its expected
Expand Down

0 comments on commit e9eb113

Please sign in to comment.