From dc8210dd842fb95870c137c81e5b86b4058ca7c2 Mon Sep 17 00:00:00 2001 From: hq1 Date: Thu, 4 Jan 2024 15:24:09 +0100 Subject: [PATCH] Use tags rather than context to annotate support hashes in Sentry (#3668) --- lib/plausible_web/plugs/error_handler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible_web/plugs/error_handler.ex b/lib/plausible_web/plugs/error_handler.ex index 9eab40e49..ef4c218c1 100644 --- a/lib/plausible_web/plugs/error_handler.ex +++ b/lib/plausible_web/plugs/error_handler.ex @@ -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