From 35e01fa7339b02fb4d17b82495cb53a2b8371a4f Mon Sep 17 00:00:00 2001 From: Jesse Tomchak Date: Fri, 10 Nov 2023 09:19:09 -0700 Subject: [PATCH] caputure specific error --- app/controllers/api/v3/timelines/statuses_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/api/v3/timelines/statuses_controller.rb b/app/controllers/api/v3/timelines/statuses_controller.rb index f97346dd0..66fe619ca 100644 --- a/app/controllers/api/v3/timelines/statuses_controller.rb +++ b/app/controllers/api/v3/timelines/statuses_controller.rb @@ -4,6 +4,11 @@ class Api::V3::Timelines::StatusesController < Api::BaseController before_action :require_mammoth! rescue_from Mammoth::StatusOrigin::NotFound do |e| + Appsignal.send_error(e) do |transaction| + transaction.set_action('foryou') + transaction.set_namespace('for_you_statuses') + transaction.params = { time: Time.now.utc, status_id: status_id_param, user_account: user_account } + end render json: { error: e.to_s }, status: 404 end