Module: Common::Client::Concerns::Monitoring
- Extended by:
- ActiveSupport::Concern
- Included in:
- Apps::Client, BGS::Service, BID::Service, BenefitsIntakeService::Service, BenefitsReferenceData::Service, BipClaims::Service, CARMA::Client::MuleSoftClient, Caseflow::Service, CentralMail::Service, Chip::Service, DebtManagementCenter::BaseService, DebtManagementCenter::Sharepoint::Request, DebtManagementCenter::VBS::Request, DecisionReview::PdfValidation::Service, DecisionReview::Service, DecisionReviewV1::Service, EVSS::Letters::DownloadService, EVSS::Service, Facilities::Metadata::Client, Form1010Ezr::Service, Forms::Client, HCA::EnrollmentEligibility::Service, HCA::Service, IHub::Appointments::Service, LGY::Service, Lighthouse::VeteransHealth::Client, MDOT::Client, MPI::Service, MailAutomation::Client, MedicalCopays::Request, OIDC::Service, Okta::Service, PagerDuty::ExternalServices::Service, Preneeds::Service, Salesforce::Service, Search::Service, SearchClickTracking::Service, SearchTypeahead::Service, SimpleFormsApiSubmission::Service, VAProfile::Communication::Service, VAProfile::ContactInformation::Service, VAProfile::Demographics::Service, VAProfile::HealthBenefit::Service, VAProfile::MilitaryPersonnel::Service, VAProfile::Person::Service, VAProfile::VeteranStatus::Service, VRE::Service, VirtualRegionalOffice::Client
- Defined in:
- lib/common/client/concerns/monitoring.rb
Instance Method Summary collapse
Instance Method Details
#with_monitoring(trace_location = 1) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/common/client/concerns/monitoring.rb', line 9 def with_monitoring(trace_location = 1) caller = caller_locations(trace_location, 1)[0].label yield rescue => e increment_failure(caller, e) raise e ensure increment_total(caller) end |