Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 2 KB

TODO.md

File metadata and controls

14 lines (12 loc) · 2 KB

TODO

Tasks yet to be done, in order of importance. Feel free to help out ;-)

  • Figure out a way to make sure all app-level subscribers (subclasses of Nexaas::Auditor::LogsSubscriber and Nexaas::Auditor::StatsSubscriber) are loaded by Rails before calling Nexaas::Auditor.subscribe_all automatically, without having to require them manually first.
  • Only require Nunes gem if the configuration says track_rails_events = true, and "fail fast" if Nunes is not loaded.
  • Only require StatHat gem if the configuration says statistics_service = 'stathat', and "fail fast" if StatHat is not loaded.
  • Extract log formating logic out of Nexaas::Auditor::AuditLogger into a proper log formating class.
  • Add possibility of supporting more log formats (currently only logfmt format is supported).
  • Add options to limit the metrics subscribed by default when track_rails_events = true; by default Nunes sends a lot of metrics, some of them may not be so useful and end up "polluting" the statistics service (or, more importantly, cost unnecessary money if the service restricts the number of metrics created).
  • Add more statistic services support (Instrumental, self-hosted StatsD, Librato, DataDoc, etc).
  • Separate the audit logging part from the statistics tracking part, maybe in separate gems as well, but in a way that they could just as easily be all used togheter and share common code.
  • Separate the bussiness-logic statistics tracking part from the Rails (Nunes) statistics tracking, maybe in separate gems as well, but in a way that they could just as easily be all used togheter and share common code.
  • Separeate log-formatting logic into a gem, that requires and uses lograge, etc, and is compatible with the Rails logger and also Sidekiq, RPush and other common gems and etc.