-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update Sentry #4914
update Sentry #4914
Conversation
Alternatively, we can just revert #4862 :) |
@@ -16,7 +16,7 @@ defmodule PlausibleWeb.EmailView do | |||
Calendar.strftime(date, "%-d %b %Y") | |||
end | |||
|
|||
def sentry_link(trace_id, dsn \\ Sentry.Config.dsn()) do | |||
def sentry_link(trace_id, dsn \\ Sentry.get_dsn()) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was Sentry.Config.dsn()
ever a binary? I remember it being an opaque tuple and now it's a struct ...
Really confusing API.
@@ -10,17 +10,6 @@ defmodule Plausible.SentryFilter do | |||
def before_send(%{original_exception: %Plug.CSRFProtection.InvalidCSRFTokenError{}}), do: false | |||
def before_send(%{original_exception: %Plug.Static.InvalidPathError{}}), do: false | |||
|
|||
def before_send( | |||
%{exception: [%{type: "Clickhousex.Error"}], original_exception: %{code: code}} = event |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clickhousex is gone.
Looks good, why did you close it? |
There are too many changes that I'm not sure about. I think it would be safer to revert to Sentry.LoggerBackend and handle the upgrade later. https://3.basecamp.com/5308029/buckets/29267832/card_tables/cards/8135181616 I'll open a PR with the "revert" tomorrow. |
Changes
This PR updates Sentry client to the latest version to take advantage of the recent Sentry.LoggerHandler improvements:
:logger
handler getsentry/sentry-elixir#717This change would need to be tried out on staging somehow.
This PR also removes some of the workarounds that are no longer necessary like
inspect(error)