Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rain_catcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rain_catcher

  • 0.2.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RainCatcher

RainCatcher utilises the raindrops statistics tool to automatically log queue data for Rack web servers (e.g. Unicorn) running Rails.

Installation

Add this line to your application's Gemfile:

gem 'rain_catcher', '~> 0.2.3'

And rebuild your bundle:

bundle install

Usage

RainCatcher automatically adds a hook into all web requests made to your application controller which will make a new log entry not more frequently than a predetermined interval.

When each request is processed, if the configured interval has elapsed then a log entry will be made.

VariableDefault ValueMeaning
RAIN_CATCHER_LOG_INTERVAL30Minimum number of seconds between each log entry
RAIN_CATCHER_LOG_LEVELINFOLog level to use for log entries
RAIN_CATCHER_APPLICATION_NAME[inferred from Rails]Application identifier which will be included in all log entries

Log Structure

Log entries are output as JSON. For example:

{"active":5,"queued":2,"source":"rain_catcher","application":"myapp","environment":"production"}

FAQs

Package last updated on 17 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc