Add to your Gemfile
gem 'lens', '~> 0.0.9'
or, if you want bleeding edge,
gem 'lens', github: 'lenshq/lens_client'
- 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