Skip to content

Commit 4bca39e

Browse files
committed
update docs
1 parent 3376c4d commit 4bca39e

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@ current environment_name: :prod
105105
Sending test event!
106106
```
107107

108-
A couple of things to note:
109-
110-
* This won't test your environment configuration. The test CLI forces your
111-
configuration to represent itself as if it were running in the production env.
112-
* If you're running within Rails (or anywhere else that will bootstrap the
113-
rake environment), you should be able to omit the DSN argument.
114-
115-
116108
## Docs
117109

118110
To build the docs locally, you'll need the [Sphinx](http://www.sphinx-doc.org/en/stable/):

docs/config.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,30 @@ Optional settings
5151

5252
Set this to true if you want to capture all exceptions that occur even outside of a request cycle. This
5353
defaults to false.
54+
55+
Testing Your Configuration
56+
--------------------------
57+
58+
To ensure you've set up your configuration correctly we recommend running the
59+
included mix task. It can be tested on different Mix environments and will tell you if it is not currently configured to send events in that environment:
60+
61+
.. code-block:: bash
62+
$ MIX_ENV=dev mix sentry.send_test_event
63+
Client configuration:
64+
server: https://sentry.io/
65+
public_key: public
66+
secret_key: secret
67+
included_environments: [:prod]
68+
current environment_name: :dev
69+
70+
:dev is not in [:prod] so no test event will be sent
71+
72+
$ MIX_ENV=prod mix sentry.send_test_event
73+
Client configuration:
74+
server: https://sentry.io/
75+
public_key: public
76+
secret_key: secret
77+
included_environments: [:prod]
78+
current environment_name: :prod
79+
80+
Sending test event!

0 commit comments

Comments
 (0)