Skip to content

Commit 565d780

Browse files
jan-auerkamilogorek
authored andcommitted
docs: Remove private DSNs from the docs (#447)
1 parent ccb38cf commit 565d780

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

docs/coffeescript.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Traceback you can pass your own stackFunction in the options. For example:
1010

1111
.. code-block:: coffeescript
1212
13-
client = new raven.Client('___DSN___', {
13+
client = new raven.Client('___PUBLIC_DSN___', {
1414
stackFunction: {{ Your stack function }}
1515
});
1616
@@ -19,6 +19,6 @@ So for example:
1919

2020
.. code-block:: coffeescript
2121
22-
client = new raven.Client('___DSN___', {
22+
client = new raven.Client('___PUBLIC_DSN___', {
2323
stackFunction: Error.prepareStackTrace
2424
});

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Next you need to initialize the Raven client and configure it to use your `Sentr
3333
.. code-block:: javascript
3434
3535
var Raven = require('raven');
36-
Raven.config('___DSN___').install();
36+
Raven.config('___PUBLIC_DSN___').install();
3737
3838
At this point, Raven is set up to capture and report any uncaught exceptions.
3939

docs/integrations/connect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Connect
77
var Raven = require('raven');
88
99
// Must configure Raven before doing anything else with it
10-
Raven.config('___DSN___').install();
10+
Raven.config('___PUBLIC_DSN___').install();
1111
1212
function mainHandler(req, res) {
1313
throw new Error('Broke!');

docs/integrations/koa.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Koa
77
var Raven = require('raven');
88
99
var app = koa();
10-
Raven.config('___DSN___').install();
10+
Raven.config('___PUBLIC_DSN___').install();
1111
1212
app.on('error', function (err) {
1313
Raven.captureException(err, function (err, eventId) {

docs/usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The recommended usage pattern, though, is to run your entire program inside a Ra
2828
2929
var Raven = require('raven');
3030
31-
Raven.config('___DSN___').install();
31+
Raven.config('___PUBLIC_DSN___').install();
3232
Raven.context(function () {
3333
// all your stuff goes here
3434
});
@@ -283,7 +283,7 @@ By default, Raven does not capture unhandled promise rejections. You can have it
283283

284284
.. code-block:: javascript
285285
286-
Raven.config('___DSN___', {
286+
Raven.config('___PUBLIC_DSN___', {
287287
captureUnhandledRejections: true
288288
}).install();
289289
@@ -345,7 +345,7 @@ Configuring the HTTP Transport
345345

346346
.. code-block:: javascript
347347
348-
Raven.config('___DSN___', {
348+
Raven.config('___PUBLIC_DSN___', {
349349
transport: new raven.transports.HTTPSTransport({rejectUnauthorized: false})
350350
});
351351
@@ -356,7 +356,7 @@ Passing any falsey value as the DSN will disable sending events upstream:
356356

357357
.. code-block:: javascript
358358
359-
Raven.config(process.env.NODE_ENV === 'production' && '___DSN___');
359+
Raven.config(process.env.NODE_ENV === 'production' && '___PUBLIC_DSN___');
360360
361361
Disable Console Alerts
362362
----------------------

0 commit comments

Comments
 (0)