You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platform-includes/getting-started-config/javascript.remix.mdx
+27-40Lines changed: 27 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -55,52 +55,16 @@ Sentry.init({
55
55
});
56
56
```
57
57
58
-
Initialize Sentry in your entry point for the server to capture exceptions and get performance metrics for your [`action`](https://remix.run/docs/en/v1/api/conventions#action) and [`loader`](https://remix.run/docs/en/v1/api/conventions#loader) functions. You can also initialize Sentry's database integrations, such as Prisma, to get spans for your database calls.
58
+
Initialize Sentry in your entry point for the server to capture exceptions and get performance metrics for your [`action`](https://remix.run/docs/en/v1/api/conventions#action) and [`loader`](https://remix.run/docs/en/v1/api/conventions#loader) functions. You can also initialize Sentry's database integrations, such as <Linkto="/platforms/node/performance/database/opt-in/#prisma-orm-integration">Prisma</Link>, to get spans for your database calls.
Learn more about <Linkto="/platforms/node/performance/database/opt-in/#prisma-orm-integration">Sentry's Prisma integration </Link>.
78
-
79
-
</Note>
60
+
Also, wrap your Remix root with `withSentry` to catch React component errors (Remix v1) and routing transactions.
80
61
81
-
If you use a custom Express server in your Remix application, you should wrap your [`createRequestHandler` function](https://remix.run/docs/en/v1/other-api/adapter#createrequesthandler) manually with `wrapExpressCreateRequestHandler`. This is not required if you use the built-in Remix App Server.
62
+
<Alert>
82
63
83
-
<Alertlevel="info">
84
-
85
-
`wrapExpressCreateRequestHandler` is available starting with version 7.11.0.
64
+
If you use the Remix `v2_errorBoundary` future flag, you need to configure a [v2 ErrorBoundary](#v2-errorboundary) in addition.
Also, wrap your Remix root with `withSentry` to catch React component errors (Remix v1) and routing transactions. If you use the Remix `v2_errorBoundary` future flag, you need to configure a [v2 ErrorBoundary](#v2-errorboundary) in addition.
103
-
104
68
```typescript {filename: root.tsx}
105
69
import {
106
70
Links,
@@ -149,6 +113,29 @@ withSentry(App, {
149
113
});
150
114
```
151
115
116
+
## Custom Express Server
117
+
118
+
If you use a custom Express server in your Remix application, you should wrap your [`createRequestHandler` function](https://remix.run/docs/en/v1/other-api/adapter#createrequesthandler) manually with `wrapExpressCreateRequestHandler`. This is not required if you use the built-in Remix App Server.
119
+
120
+
<Alertlevel="info">
121
+
122
+
`wrapExpressCreateRequestHandler` is available starting with version 7.11.0.
Copy file name to clipboardExpand all lines: src/platform-includes/getting-started-primer/javascript.remix.mdx
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,10 @@ Sentry's Remix SDK enables automatic reporting of errors and exceptions, as well
4
4
5
5
</Note>
6
6
7
-
## Features Overview
7
+
Under the hood, Remix SDK relies on our [React SDK](/platforms/javascript/guides/react/) on the frontend and [Node SDK](/platforms/node) on the backend, which makes all features available in those SDKs also available in this SDK.
8
8
9
-
-[Error Tracking](/product/issues/) with source maps for both JavaScript and TypeScript
10
-
- Events [enriched](/platforms/javascript/guides/remix/enriching-events/context/) with device data
11
-
-[Breadcrumbs](/platforms/javascript/guides/remix/enriching-events/breadcrumbs/) created for outgoing HTTP request with XHR and Fetch, and console logs
12
-
-[Release health](/product/releases/health/) for tracking crash-free users and sessions
13
-
-[Performance Monitoring](/product/performance/) for both the client and server
9
+
<Alerttitle='Non-Node Support'level='warning'>
14
10
15
-
Under the hood, Remix SDK relies on our [React SDK](/platforms/javascript/guides/react/) on the frontend and [Node SDK](/platforms/node) on the backend, which makes all features available in those SDKs also available in this SDK.
11
+
Sentry's Remix SDK does not officially support adapters that use non-Node runtimes, such as Cloudflare Workers.
The Remix SDK provides a script that automatically creates a release and uploads sourcemaps. To generate sourcemaps with Remix, you need to call remix build with the `--sourcemap` option.
4
+
5
+
On release, call `sentry-upload-sourcemaps` to upload source maps and create a release. To see more details on how to use the command, call `sentry-upload-sourcemaps --help`.
6
+
7
+
For more advanced configuration, you can use [`sentry-cli`](https://github.com/getsentry/sentry-cli) directly to upload sourcemaps.
0 commit comments