0.0
No commit activity in last 3 years
No release in over 3 years
Middleware to tell Sentry the real IP of our HTTP clients.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 0.42

Runtime

< 3, >= 1.2.0
 Project Readme

Gem Version Code Climate

SentryRealIp

This gem provides a rack middleware that will enable Sentry to see the real IP of the user causing an error.

You need this gem, if there is a proxy between the application server and the user.

Installation & Configuration

Include the gem in your application:

gem 'sentry_real_ip', '~> 1.1'

Depending on your framework, you may also need to tell your application to use the middleware of this gem. For Rails applications, it just works, and you are done by adding it to the Gemfile.

For other frameworks (e.g. Sinatra) you need to explicitly use the middleware, e.g. in your config.ru, you can put this before the call to run:

use Raven::Rack # you will usually already have this line
use SentryRealIp::Middleware