Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable honeycomb in debug environments (#721)
* Disable honeycomb in debug environments

* Disable honeycomb spam on dev and circle
  • Loading branch information
CGillen authored and straleyb committed Aug 14, 2019
1 parent 95c8f7e commit 6944129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/initializers/honeycomb.rb
@@ -1,7 +1,6 @@
Honeycomb.configure do |config|
config.write_key = ENV.fetch('HONEYCOMB_WRITEKEY', 'hereisareallylonglookingkey')
config.dataset = ENV.fetch('HONEYCOMB_DATASET', 'od2-something-something')
config.client = Libhoney::Client.new
config.notification_events = %w[
sql.active_record
render_template.action_view
Expand All @@ -12,4 +11,6 @@
send_data.action_controller
deliver.action_mailer
].freeze

config.client = Libhoney::NullClient.new if Rails.env.development? || ENV.key?("HONEYCOMB_DEBUG")
end
2 changes: 0 additions & 2 deletions docker-compose.yml
Expand Up @@ -48,7 +48,6 @@ services:
- FITS_PATH=/opt/fits-1.0.5/fits.sh
- GEONAMES_USERNAME=etsdev
- HONEYCOMB_DATASET=od2-rails
- HONEYCOMB_DEBUG=true
- HONEYCOMB_SERVICE=od2
- HONEYCOMB_WRITEKEY=buzzzzzzzzzzzzzzzz
- IIIF_SERVER_BASE_URL=http://localhost:8080/iiif
Expand Down Expand Up @@ -118,7 +117,6 @@ services:
- FITS_PATH=/opt/fits-1.0.5/fits.sh
- GEONAMES_USERNAME=etsdev
- HONEYCOMB_DATASET=od2-rails
- HONEYCOMB_DEBUG=true
- HONEYCOMB_SERVICE=od2
- HONEYCOMB_WRITEKEY=buzzzzzzzzzzzzzzzz
- IIIF_SERVER_BASE_URL=http://localhost:8080/iiif
Expand Down

0 comments on commit 6944129

Please sign in to comment.