Use tags rather than context to annotate support hashes in Sentry (#3668)

pull/3669/head r2024.01.04-306
hq1 3 years ago committed by GitHub
parent 9cb44291f7
commit dc8210dd84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ defmodule PlausibleWeb.Plugs.ErrorHandler do
@impl Plug.ErrorHandler
def handle_errors(conn, %{kind: kind, reason: reason}) do
hash = Hahash.name({kind, reason})
Sentry.Context.set_extra_context(%{hash: hash})
Sentry.Context.set_tags_context(%{hash: hash})
json(conn, %{error: "internal server error", support_hash: hash})
end
end

Loading…
Cancel
Save