Project

lens

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Gem to send Rails request stats
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.10
>= 3.0
~> 0
~> 3.2

Runtime

 Project Readme

Build Status Code Climate Test Coverage

Lens ruby gem

Installation

Add to your Gemfile

gem 'lens', '~> 0.0.9'

or, if you want bleeding edge,

gem 'lens', github: 'lenshq/lens_client'

Configuration

  • Get your application key at LensHQ site
  • Create file config/initializers/lens.rb
  • Configure Lens client (sample config below)
  • Start sending your data to Lens =]
# config/initializers/lens.rb
Lens.configure do |config|
  config.app_key = 'super_secret_key'
end

if you want to use Lens server at your instance

# config/initializers/lens.rb
Lens.configure do |config|
  config.app_key = 'super_secret_key'
  config.protocol = 'http'
  config.host = 'localhost'
  config.port = 3001
end

If you want to see information about memory allocations - you should enable this functionality:

# config/initializers/lens.rb
Lens.configure do |config|
  # ...
  config.show_memory_usage = true
  # ...
end