Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

docs: Remove private DSNs from the docs #447

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/coffeescript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Traceback you can pass your own stackFunction in the options. For example:

.. code-block:: coffeescript

client = new raven.Client('___DSN___', {
client = new raven.Client('___PUBLIC_DSN___', {
stackFunction: {{ Your stack function }}
});

Expand All @@ -19,6 +19,6 @@ So for example:

.. code-block:: coffeescript

client = new raven.Client('___DSN___', {
client = new raven.Client('___PUBLIC_DSN___', {
stackFunction: Error.prepareStackTrace
});
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Next you need to initialize the Raven client and configure it to use your `Sentr
.. code-block:: javascript

var Raven = require('raven');
Raven.config('___DSN___').install();
Raven.config('___PUBLIC_DSN___').install();

At this point, Raven is set up to capture and report any uncaught exceptions.

Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/connect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Connect
var Raven = require('raven');

// Must configure Raven before doing anything else with it
Raven.config('___DSN___').install();
Raven.config('___PUBLIC_DSN___').install();

function mainHandler(req, res) {
throw new Error('Broke!');
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/koa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Koa
var Raven = require('raven');

var app = koa();
Raven.config('___DSN___').install();
Raven.config('___PUBLIC_DSN___').install();

app.on('error', function (err) {
Raven.captureException(err, function (err, eventId) {
Expand Down
8 changes: 4 additions & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The recommended usage pattern, though, is to run your entire program inside a Ra

var Raven = require('raven');

Raven.config('___DSN___').install();
Raven.config('___PUBLIC_DSN___').install();
Raven.context(function () {
// all your stuff goes here
});
Expand Down Expand Up @@ -283,7 +283,7 @@ By default, Raven does not capture unhandled promise rejections. You can have it

.. code-block:: javascript

Raven.config('___DSN___', {
Raven.config('___PUBLIC_DSN___', {
captureUnhandledRejections: true
}).install();

Expand Down Expand Up @@ -345,7 +345,7 @@ Configuring the HTTP Transport

.. code-block:: javascript

Raven.config('___DSN___', {
Raven.config('___PUBLIC_DSN___', {
transport: new raven.transports.HTTPSTransport({rejectUnauthorized: false})
});

Expand All @@ -356,7 +356,7 @@ Passing any falsey value as the DSN will disable sending events upstream:

.. code-block:: javascript

Raven.config(process.env.NODE_ENV === 'production' && '___DSN___');
Raven.config(process.env.NODE_ENV === 'production' && '___PUBLIC_DSN___');

Disable Console Alerts
----------------------
Expand Down