mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
parent
fdf3e9d2d7
commit
875a333084
@ -20,7 +20,8 @@ To learn how to contribute to the MetaMask project itself, visit our [Internal D
|
||||
- Install dependencies: `yarn setup` (not the usual install command)
|
||||
- Copy the `.metamaskrc.dist` file to `.metamaskrc`
|
||||
- Replace the `INFURA_PROJECT_ID` value with your own personal [Infura Project ID](https://infura.io/docs).
|
||||
- If debugging MetaMetrics, you'll need to add a value for `SEGMENT_WRITE_KEY` [Segment write key](https://segment.com/docs/connections/find-writekey/), see [Developing on MetaMask](./development/README.md).
|
||||
- If debugging MetaMetrics, you'll need to add a value for `SEGMENT_WRITE_KEY` [Segment write key](https://segment.com/docs/connections/find-writekey/), see [Developing on MetaMask - Segment](./development/README.md#segment).
|
||||
- If debugging unhandled exceptions, you'll need to add a value for `SENTRY_DSN` [Sentry Dsn](https://docs.sentry.io/product/sentry-basics/dsn-explainer/), see [Developing on MetaMask - Sentry](./development/README.md#sentry).
|
||||
- Build the project to the `./dist/` folder with `yarn dist`.
|
||||
- Optionally, you may run `yarn start` to run dev mode.
|
||||
|
||||
|
@ -54,3 +54,24 @@ To opt in to MetaMetrics;
|
||||
You can inspect the requests in the `Network` tab of your browser's Developer Tools (background.html)
|
||||
by filtering for `POST` requests to `/v1/batch`. The full url will be `http://localhost:9090/v1/batch`
|
||||
or `https://api.segment.io/v1/batch` respectively.
|
||||
|
||||
## Sentry
|
||||
|
||||
### Debugging in Sentry
|
||||
|
||||
To debug in a production Sentry environment:
|
||||
|
||||
- If you have not already got a Sentry account, you can create a free account on [Sentry](https://sentry.io/)
|
||||
- Create a New Sentry Organization
|
||||
- If you already have an existing Sentry account and workspace, open the sidebar drop down menu, then click `Switch organization` followed by `Create a new organization`
|
||||
- Create a New Project
|
||||
- Copy the `Public Key` and `Project ID` from the Client Keys section under your projects Settings
|
||||
- Select `Settings` in the sidebar menu, then select `Projects` in the secondary menu. Click your project then select `Client Keys (DSN)` from the secondary menu. Click the `Configure` button on the `Client Keys` page and copy your `Project Id` and `Public Key`
|
||||
- Add/replace the `SENTRY_DSN` and `SENTRY_DSN_DEV` variables in `.metamaskrc`
|
||||
```
|
||||
SENTRY_DSN_DEV=https://{SENTRY_PUBLIC_KEY}@sentry.io/{SENTRY_PROJECT_ID}
|
||||
SENTRY_DSN=https://{SENTRY_PUBLIC_KEY}@sentry.io/{SENTRY_PROJECT_ID}
|
||||
```
|
||||
- Build the project to the `./dist/` folder with `yarn dist`
|
||||
|
||||
Errors reported whilst using the extension will be displayed in Sentry's `Issues` page.
|
||||
|
Loading…
Reference in New Issue
Block a user