forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ONYX_METRICS to .env and expose checks
- Loading branch information
Showing
8 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ USE_NGROK=false | |
USE_WEB_PROXY=false | ||
USE_WDYR=false | ||
CAPTURE_METRICS=false | ||
ONYX_METRICS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONFIG from '../../CONFIG'; | ||
|
||
// We don't capture performance metrics on web as there are enough tools available | ||
export const canCapturePerformanceMetrics = () => false; | ||
|
||
export const canCaptureOnyxMetrics = () => Boolean(CONFIG.ONYX_METRICS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import CONFIG from '../../CONFIG'; | ||
|
||
/** | ||
* Is capturing performance stats enabled. | ||
* | ||
* @returns {Boolean} | ||
*/ | ||
export const canCapturePerformanceMetrics = () => Boolean(CONFIG.CAPTURE_METRICS); | ||
|
||
/** | ||
* Is capturing Onyx stats enabled. | ||
* | ||
* @returns {Boolean} | ||
*/ | ||
export const canCaptureOnyxMetrics = () => Boolean(CONFIG.ONYX_METRICS); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.