To install the Ruby Beeline for your application:

  1. Add honeycomb-beeline to your Gemfile:

    gem 'honeycomb-beeline'
    
  2. If you have a Rails application, you can run the generator to create your configuration file:

    bundle exec rails generate honeycomb YOUR_API_KEY --dataset your-dataset-name
    

    Otherwise in your code, initialize the Beeline with your API key and dataset name:

    Honeycomb.configure do |config|
      config.write_key = 'YOUR_API_KEY'
      # The name of your app is a good choice to start with
      config.dataset = 'my-ruby-app'
    end
    
On this page: