Set `annotateReactComponents` to `true` by default

Open
#5,388 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native, typescript
Domain
mobile

Research direction

Start at packages/core/src/js/tools/metroconfig.ts around line 25 and inspect how annotateReactComponents is currently configured. Check the possible side effects of changing its default, then confirm the option defaults to true without breaking the existing Metro configuration behavior.

Written by the indexing model from the issue text.

Description

Improvement React-Native Spans

Set annotateReactComponents to true by default for better out of the box experience after considering possible side effects of this change.

https://github.com/getsentry/sentry-react-native/blob/3401245dde03cba4e29953969add939b44460fc1/packages/core/src/js/tools/metroconfig.ts#L25

Dominant language
TypeScript
Stars
1.8k
Forks
367
Avg merge
1d 6h
Merged PRs (30d)
94

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-react-native

All issues in getsentry/sentry-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.