module HoneycombRails

Constants

GEM_NAME
USER_AGENT_SUFFIX
VERSION

Public Class Methods

config() click to toggle source

@api private

# File lib/honeycomb-rails/config.rb, line 111
def config
  @config ||= Config.new
end
configure() { |config| ... } click to toggle source

Run this at app initialization time to configure honeycomb-rails. e.g.

HoneycombRails.configure do |conf|
  conf.writekey = 'abc123def'
end

See {Config} for available options.

@yield [Config] the singleton config.

# File lib/honeycomb-rails.rb, line 19
def configure
  raise "Please pass a block to #{name}#configure" unless block_given?

  yield config
  config
end
reset_config_to_default!() click to toggle source

For test use only @api private

# File lib/honeycomb-rails/config.rb, line 117
def reset_config_to_default!
  @config = Config.new
end