feat: configure status-go sentry (#16786)

This commit is contained in:
Igor Sirotin 2024-11-25 18:59:53 +00:00 committed by GitHub
parent 6cbaf44eef
commit b8a0ab0e0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"
# FIXME: Nix shell usage breaks builds due to Glibc mismatch.
$(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)
status-go: $(STATUSGO)

View File

@ -259,7 +259,12 @@ proc createAccountFromPrivateKey*(privateKey: string): RpcResponse[JsonNode] =
proc openedAccounts*(path: string): RpcResponse[JsonNode] =
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
# This sleep prevents a crash on intel MacOS
# 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"
HTTP_API_ENABLED* = desktopConfig.httpApiEnabled
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 =
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_MIXPANEL_APP_ID = "MIXPANEL_APP_ID"
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)
DEFAULT_MIXPANEL_TOKEN = "5c73bda2d36a9f688a5ee45641fb6775"
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_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)

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 5fa57c80ec1baf9687828d089ed8a9848684ac1c
Subproject commit ad28f15531c76c216f08118d4055a140ee52f80f