Skip to content

Commit

Permalink
fix(native): Update notes on Native perf support (#7457)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahest authored Jul 18, 2023
1 parent b8a01a0 commit 6e2c8b2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
20 changes: 20 additions & 0 deletions src/platforms/common/performance/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ First, enable tracing and configure the sampling rate for transactions. Set the

The two options are meant to be mutually exclusive. If you set both, <PlatformIdentifier name="traces-sampler" /> will take precedence.

<PlatformSection supported={["native"]}>

<Alert level="info">

The Native SDK doesn't currently support sampling functions (<PlatformIdentifier name="traces-sampler" />).

</Alert>

</PlatformSection>

<PlatformContent includePath="performance/configure-sample-rate" />

Learn more about how the options work in <PlatformLink to="/configuration/sampling/">Sampling Transactions</PlatformLink>.
Expand Down Expand Up @@ -102,6 +112,16 @@ If you leave your sample rate at `1.0`, a transaction will be sent every time a

</PlatformSection>

<PlatformSection supported={["native"]}>

<Alert level="info">

The Native SDK doesn't currently support sampling functions (<PlatformIdentifier name="traces-sampler" />).

</Alert>

</PlatformSection>

<PlatformSection supported={["javascript.react"]}>

`@sentry/react` exports a `withProfiler` higher order component that can be used to capture React related spans for specific React components.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ To capture transactions customized to your organization's needs, you must first

</Note>

<PlatformSection supported={["native"]}>

<Note>

Performance monitoring is still an experimental, work-in-progress feature, and its API may be unstable. It may also have bugs. Feedback is appreciated, and should be submitted as an issue in the repository linked on the right side of this page.

</Note>

</PlatformSection>

To instrument certain regions of your code, you can create transactions to capture them.

<PlatformContent includePath="performance/enable-manual-instrumentation" />
Expand Down

1 comment on commit 6e2c8b2

@vercel
Copy link

@vercel vercel bot commented on 6e2c8b2 Jul 18, 2023

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.