Skip to content

Commit

Permalink
Configure Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmotta committed Nov 26, 2024
1 parent 4b2a1db commit ce51060
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ SHOW_NOT_IMPLEMENTED_FEATURES=0
ENABLE_ALERT_BANNER=0
FLAG_WALLET_CONNECT_ENABLED=1
LOG_REQUEST_GO=1
SENTRY_ENVIRONMENT=ci-main
1 change: 1 addition & 0 deletions .env.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ ENABLE_ALERT_BANNER=0
FLAG_WALLET_CONNECT_ENABLED=1
MOBILE_DATA_SYNCING_TOGGLE_ENABLE=0
LOG_REQUEST_GO=1
SENTRY_ENVIRONMENT=ci-main
1 change: 1 addition & 0 deletions .env.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ TEST_NETWORKS_ENABLED=1
ENABLE_ALERT_BANNER=1
FLAG_WALLET_CONNECT_ENABLED=1
LOG_REQUEST_GO=1
SENTRY_ENVIRONMENT=ci-main
1 change: 1 addition & 0 deletions .env.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ TEST_NETWORKS_ENABLED=0
ENABLE_ALERT_BANNER=1
FLAG_WALLET_CONNECT_ENABLED=1
LOG_REQUEST_GO=0
SENTRY_ENVIRONMENT=ci-nightly
1 change: 1 addition & 0 deletions .env.release
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ TEST_NETWORKS_ENABLED=0
STATUS_PROXY_STAGE_NAME=prod
FLAG_WALLET_CONNECT_ENABLED=1
LOG_REQUEST_GO=0
SENTRY_ENVIRONMENT=production
7 changes: 7 additions & 0 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
#shadow/env "STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX"
status-im.config/STATUS_BACKEND_SERVER_ROOT_DATA_DIR #shadow/env
"STATUS_BACKEND_SERVER_ROOT_DATA_DIR"

status-im.config/SENTRY_DSN #shadow/env "SENTRY_DSN"
status-im.config/SENTRY_CONTEXT_NAME #shadow/env "SENTRY_CONTEXT_NAME"
status-im.config/SENTRY_CONTEXT_VERSION #shadow/env "SENTRY_CONTEXT_VERSION"
status-im.config/SENTRY_ENVIRONMENT #shadow/env "SENTRY_ENVIRONMENT"
status-im.config/SENTRY_PRODUCTION #shadow/env "SENTRY_PRODUCTION"

status-im.config/MIXPANEL_APP_ID #shadow/env "MIXPANEL_APP_ID"
status-im.config/MIXPANEL_TOKEN #shadow/env "MIXPANEL_TOKEN"
status-im.config/OPENSEA_API_KEY #shadow/env "OPENSEA_API_KEY"
Expand Down
7 changes: 7 additions & 0 deletions src/status_im/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,10 @@
(goog-define STATUS_BACKEND_SERVER_ROOT_DATA_DIR "")
;; if you're using android simulator, I suggest set the env variable to "http://10.0.2.2:"
(goog-define STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX "https://localhost:")

;;;; Sentry
(goog-define SENTRY_DSN "")
(goog-define SENTRY_CONTEXT_NAME "status-mobile")
(goog-define SENTRY_CONTEXT_VERSION "0.0.1")
(goog-define SENTRY_ENVIRONMENT "")
(goog-define SENTRY_PRODUCTION "0")
3 changes: 2 additions & 1 deletion src/status_im/contexts/profile/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
:alchemyOptimismMainnetToken config/ALCHEMY_OPTIMISM_MAINNET_TOKEN
:alchemyOptimismSepoliaToken config/ALCHEMY_OPTIMISM_SEPOLIA_TOKEN
:alchemyArbitrumMainnetToken config/ALCHEMY_ARBITRUM_MAINNET_TOKEN
:alchemyArbitrumSepoliaToken config/ALCHEMY_ARBITRUM_SEPOLIA_TOKEN})
:alchemyArbitrumSepoliaToken config/ALCHEMY_ARBITRUM_SEPOLIA_TOKEN
:sentryDSN config/SENTRY_DSN})

(defn create
[]
Expand Down

0 comments on commit ce51060

Please sign in to comment.