Skip to content

lenshq/lens_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby client. Part of Lens – profiling tool for Rails apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages