Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customizeFrame symbolicator config option #435

Closed
wants to merge 1 commit into from

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Jul 26, 2019

Adds the symbolicator.customizeFrame config option to Metro. This is a function that receives a symbolicated stack frame and can modify the response before it's sent back to the client. The collapse field is the first supported customization, intended for auto-collapsing "internal" or infra-related stack frames.

This is a redesign of work done originally in facebook/react-native#24662; I intend to eventually remove the client-side regex from RN.

Reviewed By: cpojer

Differential Revision: D16499755

Reviewed By: cpojer

Differential Revision: D16499755

fbshipit-source-id: 8c8fdb8ba97b07663fa7aac3e5a74b9627684da4
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 26, 2019
@codecov-io
Copy link

Codecov Report

Merging #435 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
+ Coverage   84.83%   84.84%   +0.01%     
==========================================
  Files         195      195              
  Lines        6424     6429       +5     
  Branches     1011     1012       +1     
==========================================
+ Hits         5450     5455       +5     
  Misses        864      864              
  Partials      110      110
Impacted Files Coverage Δ
packages/metro-config/src/defaults/index.js 85.71% <ø> (ø) ⬆️
packages/metro/src/Server.js 84.58% <ø> (ø) ⬆️
...ckages/metro/src/Server/symbolicate/symbolicate.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4614280...9c1636c. Read the comment docs.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6517ca2.

@motiz88 motiz88 deleted the export-D16499755 branch July 29, 2019 11:15
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Oct 10, 2019
Summary: Removes the use of `framesToPop` to manage frame skipping in YellowBox and replaces it with support for the `collapse` field populated by Metro's [`customizeFrame`](facebook/metro#435) config option. `framesToPop` is a deprecated mechanism which will be removed in the future.

Reviewed By: bvaughn

Differential Revision: D17857057

fbshipit-source-id: 120383ba4aad877b7ca79c7cf9d5b7579a490577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants