Remove honeycomb code from config.ru (#2378)

This commit is contained in:
Ben Halpern 2019-04-11 11:58:13 -04:00 committed by GitHub
parent 8ef611f879
commit f0d2dfff84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,4 @@
# This file is used by Rack-based servers to start the application.
# Honeycomb must be initialized before the Rails app starts
# see <https://docs.honeycomb.io/getting-data-in/ruby/beeline/> for details
require "honeycomb-beeline"
Honeycomb.init(
writekey: ENV["HONEYCOMB_API_KEY"],
# NOTE: dataset should probably be set using "HONEYCOMB_DATASET" env,
# to avoid hardcoding "dev.to" as a name
dataset: "dev.to-#{ENV['RAILS_ENV']}",
)
require ::File.expand_path("../config/environment", __FILE__)
run Rails.application