Skip to content

Commit f6f577f

Browse files
committed
Update changelog and error messages
1 parent d95a77c commit f6f577f

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@
1111
- Removed `Sentry.Event.culprit_from_stacktrace/1`
1212
- Removed `Sentry.Event.do_put_source_context/3`
1313
- Removed the `:async` value for the `:result` option in `Sentry.send_event/2` (and friends)
14-
- Removed the `Sentry.Event.sentry_exception/0` type
15-
- Accept all environments by default by changing the default for the `:included_environments` configuration option from `[:prod]` to `:all`
1614
- Removed `Sentry.CrashError` — now, crash reports (detected through `Sentry.LoggerBackend`) that do not contain exceptions are reported as *messages* in Sentry
15+
- Started accepting all environments by default by changing the default for the `:included_environments` configuration option from `[:prod]` to `:all`
16+
- Changed the shape of the `Sentry.Event` struct - check out the new fields (and typespec for `Sentry.Event.t/0`)
1717

1818
### Improvements
1919

2020
- Add `Sentry.LoggerHandler`, which is a `:logger` handler rather than a `Logger` backend
2121
- Make the `Sentry.HTTPClient.child_spec/0` callback optional
2222
- Add `:all` as a possible value of the `:metadata` configuration option for `Sentry.LoggerBackend`
23+
- Add `Sentry.Interfaces` with all the child modules, which are useful if you're working directly with the Sentry API
2324

2425
### Deprecations
2526

2627
- Soft-deprecate `Sentry.EventFilter` in favour of `:before_send_event` callbacks.
2728

29+
### Bug fixes
30+
31+
- Fix an issue with JSON-encoding non-encodable terms (such as PIDs, which are pretty common)
32+
2833
## 8.1.0
2934

3035
### Various fixes & improvements

lib/sentry/config.ex

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,26 @@ defmodule Sentry.Config do
6464
@spec assert_dsn_has_no_query_params!() :: :ok
6565
def assert_dsn_has_no_query_params! do
6666
if sentry_dsn = dsn() do
67-
if URI.parse(sentry_dsn).query do
67+
uri_dsn = URI.parse(sentry_dsn)
68+
69+
if uri_dsn.query do
6870
raise ArgumentError, """
69-
using a Sentry DSN with query parameters is not supported since v9.0.0 of this library. \
70-
Please remove the query parameters from your DSN and pass them in as regular \
71-
configuration. See the documentation for the Sentry module for more information.\
71+
using a Sentry DSN with query parameters is not supported since v9.0.0 of this library.
72+
The configured DSN was:
73+
74+
#{inspect(sentry_dsn)}
75+
76+
The query string in that DSN is:
77+
78+
#{inspect(uri_dsn.query)}
79+
80+
Please remove the query parameters from your DSN and pass them in as regular
81+
configuration. Check out the guide to upgrade to 9.0.0 at:
82+
83+
https://hexdocs.pm/sentry/upgrade-9.x.html
84+
85+
See the documentation for the Sentry module for more information on configuration
86+
in general.
7287
"""
7388
end
7489
end

0 commit comments

Comments
 (0)