You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-3
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,34 @@ This is the official Sentry SDK for [Sentry].
18
18
19
19
### Install
20
20
21
-
To use Sentry in your project, add it as a dependency in your `mix.exs` file. Sentry does not install a JSON library nor HTTP client by itself. Sentry will default to trying to use [Jason] for JSON serialization and [Hackney] for HTTP requests, but can be configured to use other ones. To use the default ones, do:
21
+
To use Sentry in your project, add it as a dependency in your `mix.exs` file.
22
+
23
+
Sentry does not install a JSON library nor an HTTP client by itself. Sentry will default to the [built-in `JSON`](https://hexdocs.pm/elixir/JSON.html) for JSON and [Hackney] for HTTP requests, but can be configured to use other ones. To use the default ones, do:
22
24
23
25
```elixir
24
26
defpdepsdo
25
27
[
26
28
# ...
27
29
28
30
{:sentry, "~> 10.0"},
29
-
{:jason, "~> 1.4"},
30
31
{:hackney, "~> 1.19"}
31
32
]
32
33
end
33
34
```
34
35
36
+
> [!WARNING]
37
+
> If you're using an Elixir version before 1.18, the Sentry SDK will default to [Jason] as the JSON library. However, you **must** add it to your dependencies:
38
+
>
39
+
> ```elixir
40
+
>defp deps do
41
+
> [
42
+
># ...
43
+
> {:sentry, "~> 10.0"},
44
+
> {:jason, "~> 1.4"}
45
+
> ]
46
+
>end
47
+
> ```
48
+
35
49
### Configuration
36
50
37
51
Sentry has a range of configuration options, but most applications will have a configuration that looks like the following:
@@ -130,7 +144,6 @@ Thanks to everyone who has contributed to this project so far.
If you need help setting up or configuring the Elixir SDK (or anything else in the Sentry universe) please head over to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people in our Discord community ready to help you!
0 commit comments