Skip to content

Commit 900aedc

Browse files
authored
fix(docs): Typo missing third underscore around DSN (#5539)
Unsure what the distinction between `___DSN___` and `___PUBLIC_DSN___` is but all `__DSN__` (2 underscores) should all be `___DSN___` (3 underscores).
1 parent 311c891 commit 900aedc

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/docs/clients/node/integrations.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var app = require("express")();
5050
var Raven = require("raven");
5151

5252
// Must configure Raven before doing anything else with it
53-
Raven.config("__DSN__").install();
53+
Raven.config("___DSN___").install();
5454

5555
// The request handler must be the first middleware on the app
5656
app.use(Raven.requestHandler());
@@ -101,7 +101,7 @@ Configure `raven-node` as early as possible:
101101
// server/server.js
102102

103103
const Raven = require("raven");
104-
Raven.config("__DSN__").install();
104+
Raven.config("___DSN___").install();
105105
```
106106

107107
Add `Raven.errorHandler` as a Loopback middleware:
@@ -124,7 +124,7 @@ Add `Raven.errorHandler` as a Loopback middleware:
124124
// config/http.js
125125

126126
var Raven = require("raven");
127-
Raven.config("__DSN__").install();
127+
Raven.config("___DSN___").install();
128128

129129
module.exports.http = {
130130
middleware: {

src/platform-includes/getting-started-config/javascript.remix.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as Sentry from "@sentry/remix";
66
import { useEffect } from "react";
77

88
Sentry.init({
9-
dsn: "__DSN__",
9+
dsn: "___DSN___",
1010
tracesSampleRate: 1,
1111
integrations: [
1212
new Sentry.BrowserTracing({
@@ -29,14 +29,14 @@ import { prisma } from "~/db.server";
2929
import * as Sentry from "@sentry/remix";
3030

3131
Sentry.init({
32-
dsn: "__DSN__",
32+
dsn: "___DSN___",
3333
tracesSampleRate: 1,
3434
integrations: [new Sentry.Integrations.Prisma({ client: prisma })],
3535
// ...
3636
});
3737
```
3838

39-
<Note>
39+
<Note>
4040

4141
Learn more about <Link to="/platforms/node/performance/database/opt-in/#prisma-orm-integration">Sentry's Prisma integration </Link>.
4242

@@ -45,12 +45,12 @@ Learn more about <Link to="/platforms/node/performance/database/opt-in/#prisma-o
4545
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.
4646

4747
<Alert level="info">
48-
48+
4949
`wrapExpressCreateRequestHandler` is available starting with version 7.11.0.
5050

5151
</Alert>
5252

53-
53+
5454
```typescript {filename: server/index.ts}
5555
import { wrapExpressCreateRequestHandler } from "@sentry/remix";
5656
import { createRequestHandler } from '@remix-run/express';
@@ -111,7 +111,7 @@ withSentry(App, {
111111

112112
Once you've done this set up, the SDK will automatically capture unhandled errors and promise rejections, and monitor performance in the client. You can also [manually capture errors](/platforms/javascript/guides/remix/usage).
113113

114-
114+
115115
<Note>
116116

117117
You can refer to [Remix Docs](https://remix.run/docs/en/v1/guides/envvars#browser-environment-variables) to learn how to use your Sentry DSN from environment variables.

src/platform-includes/performance/custom-performance-metrics/python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To enable the capturing of custom metrics, you'll need to enable the `custom_mea
44

55
```python
66
sentry_sdk.init(
7-
dsn="__DSN__",
7+
dsn="___DSN___",
88
_experiments={
99
"custom_measurements": True,
1010
},

src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Initialize `Sentry.reactRouterV6Instrumentation` as your routing instrumentation
2727
- `useEffect` hook from `react`
2828
- `useLocation` and `useNavigationType` hooks from `react-router-dom`
2929
- `createRoutesFromChildren` and `matchRoutes` functions from `react-router-dom` or `react-router` packages.
30-
30+
3131
<Alert level="warning">
3232

3333
Make sure `Sentry.reactRouterV6Instrumentation` is initialized by your `Sentry.init` call, before you wrap `<Routes />` component or `useRoutes` hook. Otherwise, the routing instrumentation may not work properly.
3434

3535
</Alert>
3636

3737
### Usage With `<Routes />` Component
38-
38+
3939
If you use the `<Routes />` component from `react-router-dom` to define your routes, wrap [`Routes`](https://reactrouter.com/docs/en/v6/api#routes-and-route) using `Sentry.withSentryReactRouterV6Routing`. This creates a higher order component, which will enable Sentry to reach your router context, as in the example below:
4040

4141
```javascript
@@ -101,7 +101,7 @@ import { wrapUseRoutes } from "@sentry/react";
101101
import { useEffect } from "react";
102102

103103
Sentry.init({
104-
dsn: "__DSN__",
104+
dsn: "___DSN___",
105105
integrations: [
106106
new BrowserTracing({
107107
routingInstrumentation: Sentry.reactRouterV6Instrumentation(

src/wizard/javascript/remix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import * as Sentry from "@sentry/remix";
2323
import { useEffect } from "react";
2424

2525
Sentry.init({
26-
dsn: "__DSN__",
26+
dsn: "___DSN___",
2727
tracesSampleRate: 1,
2828
integrations: [
2929
new Sentry.BrowserTracing({
@@ -45,7 +45,7 @@ import { prisma } from "~/db.server";
4545
import * as Sentry from "@sentry/remix";
4646

4747
Sentry.init({
48-
dsn: "__DSN__",
48+
dsn: "___DSN___",
4949
tracesSampleRate: 1,
5050
integrations: [new Sentry.Integrations.Prisma({ client: prisma })],
5151
});

0 commit comments

Comments
 (0)