Skip to content

Commit ce818a1

Browse files
committed
doc: Update docs for public DSNs
1 parent cadfda1 commit ce818a1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Simply add configuration to the ``:sentry`` key in the file ``config/prod.exs``:
88
.. code-block:: elixir
99
1010
config :sentry,
11-
dsn: "https://public:[email protected]/1"
11+
dsn: "___PUBLIC_DSN___"
1212
1313
If using an environment with Plug or Phoenix add the following to your router:
1414

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Setup the application production environment in your ``config/prod.exs``
3535
.. code-block:: elixir
3636
3737
config :sentry,
38-
dsn: "https://public:[email protected]/1",
38+
dsn: "___PUBLIC_DSN___",
3939
environment_name: :prod,
4040
enable_source_code_context: true,
4141
root_source_code_path: File.cwd!,
@@ -55,7 +55,7 @@ An alternative is to use ``Mix.env`` in your general configuration file:
5555

5656
.. code-block:: elixir
5757
58-
config :sentry, dsn: "https://public:[email protected]/1"
58+
config :sentry, dsn: "___PUBLIC_DSN___"
5959
included_environments: [:prod],
6060
environment_name: Mix.env
6161
@@ -70,7 +70,7 @@ environment variable that determines the release level.
7070

7171
.. code-block:: elixir
7272
73-
config :sentry, dsn: "https://public:[email protected]/1"
73+
config :sentry, dsn: "___PUBLIC_DSN___"
7474
included_environments: ~w(production staging),
7575
environment_name: System.get_env("RELEASE_LEVEL") || "development"
7676

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Otherwise we provide a simple way to capture exceptions:
1111

1212
.. code-block:: elixir
1313
14-
do
14+
try do
1515
ThisWillError.reall()
1616
rescue
1717
my_exception ->

0 commit comments

Comments
 (0)