Skip to content

Instantly share code, notes, and snippets.

View robmadole's full-sized avatar

Rob Madole robmadole

View GitHub Profile
21:31:40 web.1 | 2016-02-15 21:31:40 +0000: Rack app error: #<NoMethodError: undefined method `[]=' for nil:NilClass>
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `block in call'
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `tap'
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
21:31:40 web.1 | /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
21:31:40 web.1 | /home/vagrant/.rbenv/v
@robmadole
robmadole / cachex.ex
Created February 12, 2020 19:04
Example of a cachex hook being integrated with Prometheus
defmodule Kits.Metrics.Cachex do
@moduledoc """
Metrics related to our use of Cachex
"""
use Cachex.Hook
use Prometheus.Metric
alias Kits.Metrics