Using Sentry Performance Monitoring with Inertia.js #8528
AbhiPrasad
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hello
I got warning: Now, I should use Sentry.browserTracingIntegration |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Errors instrumentation should work out of the box with Inertia.js, but you'll have to do some more work to get it working for performance monitoring. In particular, you'll need to give information to Sentry about the inertia router so that Sentry can generate pageload and navigations appropriately.
Adding Inertia support with Sentry performance monitoring depends on if you are using
Sentry.BrowserTracing
or `Sentry.browserTracingIntegration.If you are using
Sentry.browserTracingIntegration
, first disable the automatic routing instrumentation, and then initialize pageloads/navigations yourself accordingly via the inertia router.If you are using
Sentry.BrowserTracing
, create aroutingInstrumentation
that listens in on the inertia router.Beta Was this translation helpful? Give feedback.
All reactions