Skip to content

Commit f751628

Browse files
authored
docs(js): Add troubleshooting for client instrumentation hook warning (#14554)
1 parent 8af726e commit f751628

File tree

1 file changed

+8
-0
lines changed
  • docs/platforms/javascript/common/troubleshooting

1 file changed

+8
-0
lines changed

docs/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,14 @@ shamefully-hoist=true
670670
```
671671
672672
</Expandable>
673+
674+
<Expandable permalink title="Client Instrumentation Hook - Slow execution detected">
675+
Seeing this warning in your dev build might be misleading due to Next.js dev server internals.
676+
677+
In case you are using Session Replay and experience performance issues with the client instrumentation hook, you can try lazy-loading session replay as described [here](https://docs.sentry.io/platforms/javascript/guides/nextjs/session-replay/#lazy-loading-replay).
678+
679+
If you want to init the SDK itself at a later point, this will result in tracing data loosing accuracy and errors could happen before the SDK is initialized. This should be a tradeoff you make based on your use case, although we recommend initializing the SDK as early as possible.
680+
</Expandable>
673681
</PlatformSection>
674682
675683
If you need additional help, you can [ask on GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose). Customers on a paid plan may also contact support.

0 commit comments

Comments
 (0)