feat: configure status-go sentry

This commit is contained in:
Igor Sirotin 2024-11-20 13:10:23 +00:00
parent d4e1539901
commit 4221fc1a8e
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
5 changed files with 15 additions and 2 deletions

View File

@ -439,6 +439,8 @@ $(STATUSGO): | deps status-go-deps
echo -e $(BUILD_MSG) "status-go" echo -e $(BUILD_MSG) "status-go"
# FIXME: Nix shell usage breaks builds due to Glibc mismatch. # FIXME: Nix shell usage breaks builds due to Glibc mismatch.
$(MAKE) -C vendor/status-go statusgo-shared-library SHELL=/bin/sh \ $(MAKE) -C vendor/status-go statusgo-shared-library SHELL=/bin/sh \
SENTRY_CONTEXT_NAME="status-desktop" \
SENTRY_CONTEXT_VERSION="$(DESKTOP_VERSION)" \
$(STATUSGO_MAKE_PARAMS) $(HANDLE_OUTPUT) $(STATUSGO_MAKE_PARAMS) $(HANDLE_OUTPUT)
status-go: $(STATUSGO) status-go: $(STATUSGO)

View File

@ -259,7 +259,12 @@ proc createAccountFromPrivateKey*(privateKey: string): RpcResponse[JsonNode] =
proc openedAccounts*(path: string): RpcResponse[JsonNode] = proc openedAccounts*(path: string): RpcResponse[JsonNode] =
try: try:
let payload = %* {"dataDir": path, "mixpanelAppId": MIXPANEL_APP_ID, "mixpanelToken": MIXPANEL_TOKEN} let payload = %* {
"dataDir": path,
"mixpanelAppId": MIXPANEL_APP_ID,
"mixpanelToken": MIXPANEL_TOKEN,
"sentryDSN": SENTRY_DSN_STATUS_GO,
}
# Do not remove the sleep 700 # Do not remove the sleep 700
# This sleep prevents a crash on intel MacOS # This sleep prevents a crash on intel MacOS
# with errors like bad flushGen 12 in prepareForSweep; sweepgen 0 # with errors like bad flushGen 12 in prepareForSweep; sweepgen 0

View File

@ -64,6 +64,8 @@ let
BUILD_MODE* = if defined(production): "prod" else: "test" BUILD_MODE* = if defined(production): "prod" else: "test"
HTTP_API_ENABLED* = desktopConfig.httpApiEnabled HTTP_API_ENABLED* = desktopConfig.httpApiEnabled
WS_API_ENABLED* = desktopConfig.wsApiEnabled WS_API_ENABLED* = desktopConfig.wsApiEnabled
SENTRY_DSN_STATUS_GO* = BUILD_SENTRY_DSN_STATUS_GO
SENTRY_DSN_STATUS_GO_DESKTOP* = BUILD_SENTRY_DSN_STATUS_DESKTOP
proc hasLogLevelOption*(): bool = proc hasLogLevelOption*(): bool =
for p in cliParams: for p in cliParams:

View File

@ -31,6 +31,8 @@ const BASE_NAME_STATUS_PROXY_PASSWORD = "PROXY_PASSWORD"
const BASE_NAME_WALLET_CONNECT_PROJECT_ID = "WALLET_CONNECT_PROJECT_ID" const BASE_NAME_WALLET_CONNECT_PROJECT_ID = "WALLET_CONNECT_PROJECT_ID"
const BASE_NAME_MIXPANEL_APP_ID = "MIXPANEL_APP_ID" const BASE_NAME_MIXPANEL_APP_ID = "MIXPANEL_APP_ID"
const BASE_NAME_MIXPANEL_TOKEN = "MIXPANEL_TOKEN" const BASE_NAME_MIXPANEL_TOKEN = "MIXPANEL_TOKEN"
const BASE_NAME_SENTRY_DSN_STATUS_GO = "SENTRY_DSN_STATUS_GO"
const BASE_NAME_SENTRY_DSN_STATUS_DESKTOP = "SENTRY_DSN_STATUS_DESKTOP"
################################################################################ ################################################################################
@ -49,6 +51,8 @@ const
BUILD_MIXPANEL_APP_ID = getEnv(BUILD_TIME_PREFIX & BASE_NAME_MIXPANEL_APP_ID, DEFAULT_MIXPANEL_APP_ID) BUILD_MIXPANEL_APP_ID = getEnv(BUILD_TIME_PREFIX & BASE_NAME_MIXPANEL_APP_ID, DEFAULT_MIXPANEL_APP_ID)
DEFAULT_MIXPANEL_TOKEN = "5c73bda2d36a9f688a5ee45641fb6775" DEFAULT_MIXPANEL_TOKEN = "5c73bda2d36a9f688a5ee45641fb6775"
BUILD_MIXPANEL_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_MIXPANEL_TOKEN, DEFAULT_MIXPANEL_TOKEN) BUILD_MIXPANEL_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_MIXPANEL_TOKEN, DEFAULT_MIXPANEL_TOKEN)
BUILD_SENTRY_DSN_STATUS_GO = getEnv(BUILD_TIME_PREFIX & BASE_NAME_SENTRY_DSN_STATUS_GO, "")
BUILD_SENTRY_DSN_STATUS_DESKTOP = getEnv(BUILD_TIME_PREFIX & BASE_NAME_SENTRY_DSN_STATUS_DESKTOP, "")
const BUILD_OPENSEA_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_OPENSEA_API_KEY) const BUILD_OPENSEA_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_OPENSEA_API_KEY)
const BUILD_RARIBLE_MAINNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_MAINNET_API_KEY) const BUILD_RARIBLE_MAINNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_MAINNET_API_KEY)
const BUILD_RARIBLE_TESTNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_TESTNET_API_KEY) const BUILD_RARIBLE_TESTNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_TESTNET_API_KEY)

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 7ee45bab1cc6ef6da24ade1826f11152153d4783 Subproject commit 72d55a2cd36277e3d29bb55c1e59aa09ba2cd0ad