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: CHANGELOG.md
+61
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,66 @@
1
1
# Changelog
2
2
3
+
## 10.8.1
4
+
5
+
### Various fixes & improvements
6
+
7
+
- Update to LiveView 1.0 🎉 (#826) by @solnic
8
+
- Replace release bot with GH app (#828) by @Jeffreyhung
9
+
10
+
## 10.8.0
11
+
12
+
This release bumps the minimum Elixir requirement to 1.13, fixes a few bugs, and introduces **client reports**. Client reports will be sent to Sentry by default, but you can disable them with:
13
+
14
+
```elixir
15
+
config :sentry,
16
+
# ...,
17
+
send_client_reports:false
18
+
```
19
+
20
+
### Improvements and new features
21
+
22
+
- Add support for [client reports](https://develop.sentry.dev/sdk/telemetry/client-reports/) (#801) by @savhappy
23
+
- Add option for generating custom cron monitor slugs (#803) by @iautom8things
24
+
- Improvements to documentation
25
+
- Require Elixir 1.13+ (21f0f77e) by @whatyouhide
26
+
- Validate that custom HTTP clients return correct stuff (#794) by @savhappy
27
+
28
+
### Bug fixes
29
+
30
+
- Fix stacktraces with no frames (#787) by @savhappy
31
+
- Special-case Ranch errors in the logger handler for OTP 25 (#818) by @whatyouhide
32
+
- Few fixes to `mix sentry.send_test_event`
33
+
- Handle Bandit exception when fetching peer data (#814) by @ardhitama
34
+
- Support non-exception error values from Oban jobs (#807) by @savhappy
- Add `Sentry.ClientError` for more structured client errors. You can use this to programmatically deal with errors when reporting events, if you need to. — *@savhappy*
53
+
- Add `:integration_meta` key to `Sentry.Event`. — *(#771) by @savhappy*
54
+
- Validate Sentry options even if DSN is not set. — *(#772) by @savhappy*
55
+
56
+
Bug fixes:
57
+
58
+
- Fix Sentry check-ins by internally mapping check-in IDs for "start" and "stop" events. — *@savhappy*
59
+
- Fix `mix sentry.package_source_code` edge cases by compiling code before running the task. — *@whatyouhide*
60
+
- Support structured logs in `Sentry.LoggerHandler`. — *(#765) by @martosaur*
61
+
- Handle `nil` environment correctly in Sentry config — *(#753) by @fahchen*
62
+
- Fix exceptions with an empty stacktrace. — *(#755) by @savhappy*
Copy file name to clipboardExpand all lines: README.md
+68-13
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,35 @@ 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 [Finch] 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 [Finch] for HTTP requests, but can be configured to use other ones. To use the default ones, do:
24
+
22
25
23
26
```elixir
24
27
defpdepsdo
25
28
[
26
29
# ...
27
-
28
-
{:sentry, "~> 10.0"},
30
+
{:sentry, "~> 10.8"},
29
31
{:jason, "~> 1.4"},
30
32
{:finch, "~> 0.18"}
31
33
]
32
34
end
33
35
```
34
36
37
+
> [!WARNING]
38
+
> 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:
39
+
>
40
+
> ```elixir
41
+
>defp deps do
42
+
> [
43
+
># ...
44
+
> {:sentry, "~> 10.8.1"},
45
+
> {:jason, "~> 1.4"}
46
+
> ]
47
+
>end
48
+
> ```
49
+
35
50
### Configuration
36
51
37
52
Sentry has a range of configuration options, but most applications will have a configuration that looks like the following:
@@ -40,24 +55,65 @@ Sentry has a range of configuration options, but most applications will have a c
This library comes with a [`:logger` handler][logger-handlers] to capture error messages coming from process crashes. To enable this, add the handler when your application starts:
65
+
This library comes with a [`:logger` handler][logger-handlers] to capture error messages coming from process crashes. To enable this, add [`Sentry.LoggerHandler`](https://hexdocs.pm/sentry/Sentry.LoggerHandler.html) to your production configuration:
See all logger configuration options [here](https://hexdocs.pm/sentry/Sentry.LoggerHandler.html).
115
+
116
+
#### Capture exceptions manually
61
117
62
118
Sometimes you want to capture specific exceptions manually. To do so, use [`Sentry.capture_exception/2`](https://hexdocs.pm/sentry/Sentry.html#capture_exception/2).
63
119
@@ -130,10 +186,9 @@ Thanks to everyone who has contributed to this project so far.
If you need help setting up or configuring the Python 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!
191
+
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