Skip to content

Commit

Permalink
Fix span ops in React Profiler (#5608)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Oct 6, 2022
1 parent 565eb7a commit 3540efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/javascript/guides/react/components/profiler.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The React Profiler currently generates spans with three different kinds of op-co

<Alert>

In [React Strict Mode](https://reactjs.org/docs/strict-mode.html), certain component methods will be [invoked twice](https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects). This may lead to duplicate `react.mount` spans appearing in a transaction. React Strict Mode only runs in development mode, so this will have no impact on your production traces.
In [React Strict Mode](https://reactjs.org/docs/strict-mode.html), certain component methods will be [invoked twice](https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects). This may lead to duplicate `ui.react.mount` spans appearing in a transaction. React Strict Mode only runs in development mode, so this will have no impact on your production traces.

</Alert>

Expand All @@ -60,7 +60,7 @@ export default Sentry.withProfiler(App, { name: "CustomAppName" });

`includeRender` (boolean)

: If a `react.render` span should be created by the Profiler. Set as true by default.
: If a `ui.react.render` span should be created by the Profiler. Set as true by default.

`includeUpdates` (boolean)

Expand Down

1 comment on commit 3540efd

@vercel
Copy link

@vercel vercel bot commented on 3540efd Oct 6, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs.sentry.dev
docs.sentry.io
sentry-docs-git-master.sentry.dev

Please sign in to comment.