Skip to content

Use environment variable for production Sentry DSN#9097

Merged
Gudahtt merged 1 commit intodevelopfrom
use-environment-variable-for-sentry-dsn
Jul 29, 2020
Merged

Use environment variable for production Sentry DSN#9097
Gudahtt merged 1 commit intodevelopfrom
use-environment-variable-for-sentry-dsn

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Jul 28, 2020

The Sentry DSN is now expected to be provided via environment variable for production builds. The build script will fail if it is missing, and an error will be thrown at runtime if it is missing.

The SENTRY_DSN environment variable has been set in CI to the old value for SENTRY_PROD_DSN. We can migrate to a new DSN at some point in the future.

The Sentry DSN is now expected to be provided via environment variable
for production builds. The build script will fail if it is missing, and
an error will be thrown at runtime if it is missing.

The `SENTRY_DSN` environment variable has been set in CI to the old
value for `SENTRY_PROD_DSN`. We can migrate to a new DSN at some point
in the future.
@Gudahtt Gudahtt requested review from a team and kumavis as code owners July 28, 2020 20:13
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [1081de3]
Page Load Metrics (680 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30110512512
domContentLoaded5828386785828
load5838416805928
domInteractive5828386775828

Copy link
Copy Markdown
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@whymarrh
Copy link
Copy Markdown
Contributor

I might suggest that we update the title here (and thus the commit message when merged) to include the "production" qualifier:

- Use environment variable for Sentry DSN
+ Use environment variable for production Sentry DSN

@Gudahtt Gudahtt changed the title Use environment variable for Sentry DSN Use environment variable for production Sentry DSN Jul 29, 2020
@whymarrh
Copy link
Copy Markdown
Contributor

The SENTRY_DSN environment variable has been set in CI

I can confirm that SENTRY_DSN has been set. 👍

@Gudahtt Gudahtt merged commit d7a5319 into develop Jul 29, 2020
@Gudahtt Gudahtt deleted the use-environment-variable-for-sentry-dsn branch July 29, 2020 16:14
Gudahtt added a commit that referenced this pull request Jul 30, 2020
* origin/develop: (582 commits)
  Use async/await for seedPhraseVerifier.verifyAccounts (#9100)
  Use async/await for getRestrictedMethods (#9099)
  Update dependencies (#9105)
  update email us to contact us (#9104)
  Improve source maps (#9101)
  Update font family globally (#9073)
  rpc-cap@3.1.0 (#9103)
  Use environment variable for production Sentry DSN (#9097)
  Only log error on first occurrence of missing substitution (#9096)
  Use mixins for typography instead of placeholder selectors (#9072)
  Update css folder structure (#9071)
  Disable Sentry in development (#9095)
  Use environment variable for MetaMetrics project ID (#9094)
  Use development metametrics project during tests (#9093)
  json-rpc-engine@5.2.0 (#9091)
  fixup! call initializeProvider where necessary
  call initializeProvider where necessary
  Add euclid fontface (#9018)
  fix timing-reliant network controller test
  Robustify permissions controller requestUserApproval tests (#9064)
  ...
Gudahtt added a commit that referenced this pull request Aug 7, 2020
The Sentry DSN is now expected to be provided via environment variable
for production builds. The build script will fail if it is missing, and
an error will be thrown at runtime if it is missing.

The `SENTRY_DSN` environment variable has been set in CI to the old
value for `SENTRY_PROD_DSN`. We can migrate to a new DSN at some point
in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants