diff --git a/app/controllers/v0/pension_claims_controller.rb b/app/controllers/v0/pension_claims_controller.rb index 79f039d112d..d84178c373c 100644 --- a/app/controllers/v0/pension_claims_controller.rb +++ b/app/controllers/v0/pension_claims_controller.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'pension_21p527ez/tag_sentry' + module V0 class PensionClaimsController < ClaimsBaseController service_tag 'pension-application' @@ -45,7 +47,7 @@ def show # Creates and validates an instance of the class, removing any copies of # the form that had been previously saved by the user. def create - PensionBurial::TagSentry.tag_sentry + Pension21p527ez::TagSentry.tag_sentry claim = claim_class.new(form: filtered_params[:form]) user_uuid = current_user&.uuid diff --git a/app/sidekiq/lighthouse/pension_benefit_intake_job.rb b/app/sidekiq/lighthouse/pension_benefit_intake_job.rb index e75b27be4f6..1decf91402d 100644 --- a/app/sidekiq/lighthouse/pension_benefit_intake_job.rb +++ b/app/sidekiq/lighthouse/pension_benefit_intake_job.rb @@ -3,6 +3,7 @@ require 'benefits_intake_service/service' require 'central_mail/datestamp_pdf' require 'simple_forms_api_submission/metadata_validator' +require 'pension_21p527ez/tag_sentry' module Lighthouse class PensionBenefitIntakeJob @@ -33,6 +34,8 @@ class PensionBenefitIntakeError < StandardError; end # @param [Integer] saved_claim_id # rubocop:disable Metrics/MethodLength def perform(saved_claim_id) + Pension21p527ez::TagSentry.tag_sentry + @saved_claim_id = saved_claim_id @claim = SavedClaim::Pension.find(saved_claim_id) raise PensionBenefitIntakeError, "Unable to find SavedClaim::Pension #{saved_claim_id}" unless @claim diff --git a/lib/pension_21p527ez/tag_sentry.rb b/lib/pension_21p527ez/tag_sentry.rb new file mode 100644 index 00000000000..d11a5a5876a --- /dev/null +++ b/lib/pension_21p527ez/tag_sentry.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Pension21p527ez + module TagSentry + module_function + + TAG_NAME = 'pension_21p527ez' + + def tag_sentry + Sentry.set_tags(feature: TAG_NAME) + end + end +end