Remove extra HoneycombClient (#6573)

This commit is contained in:
rhymes 2020-03-11 10:34:14 +01:00 committed by GitHub
parent 909519c5d5
commit 5f831c9836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,6 @@ if Rails.env.test? || ApplicationConfig["HONEYCOMB_API_KEY"].blank?
Honeycomb.configure do |config|
config.client = Libhoney::TestClient.new
end
HoneycombClient = Libhoney::TestClient.new
else
honeycomb_api_key = ApplicationConfig["HONEYCOMB_API_KEY"]
@ -32,7 +30,4 @@ else
end
end
end
# here we create an additional Honeycomb client that can be used to send custom events
HoneycombClient = Libhoney::Client.new(writekey: honeycomb_api_key, dataset: "dev-ruby")
end