Skip to content

Commit

Permalink
Remove sign-in service stats from initializer (#12415)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyanderson authored Apr 17, 2023
1 parent 926b2c3 commit 4e4d670
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions config/initializers/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,6 @@
end
end

# Sign in Service
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_TOKEN_SUCCESS, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_TOKEN_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REFRESH_SUCCESS, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REFRESH_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REVOKE_SUCCESS, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REVOKE_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REVOKE_ALL_SESSIONS_SUCCESS, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_REVOKE_ALL_SESSIONS_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_LOGOUT_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_LOGOUT_SUCCESS, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_AUTHORIZE_FAILURE, 0)
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_CALLBACK_FAILURE, 0)
%w[vamobile vaweb].each do |client_id|
SignIn::Constants::Auth::CSP_TYPES.each do |type|
SignIn::Constants::Auth::ACR_VALUES.each do |acr|
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_AUTHORIZE_SUCCESS, 0,
tags: ["type:#{type}", "client_id:#{client_id}", "acr:#{acr}"])
[IAL::ONE, IAL::TWO].each do |ial|
StatsD.increment(SignIn::Constants::Statsd::STATSD_SIS_CALLBACK_SUCCESS, 0,
tags: ["type:#{type}", "client_id:#{client_id}", "ial:#{ial}", "acr:#{acr}"])
end
end
end
end

# init GiBillStatus stats to 0
StatsD.increment(V0::Post911GIBillStatusesController::STATSD_GI_BILL_TOTAL_KEY, 0)
StatsD.increment(V0::Post911GIBillStatusesController::STATSD_GI_BILL_FAIL_KEY, 0, tags: ['error:unknown'])
Expand Down

0 comments on commit 4e4d670

Please sign in to comment.