Add Honeycomb beeline gem for monitoring and observability (#4649)

This commit is contained in:
Molly Struve 2019-10-30 11:02:31 -05:00 committed by Ben Halpern
parent 41463a7264
commit dc72b4f1fa
4 changed files with 27 additions and 2 deletions

View file

@ -37,7 +37,7 @@ variable :REDIS_URL, :String, default: "redis://localhost:6379"
# It's best if you have the following configured
# for more development experience
# Github for github related access
# Github for github related access
# (https://developer.github.com/v3/guides/basics-of-authentication/)
variable :GITHUB_KEY, :String, default: "Optional"
variable :GITHUB_SECRET, :String, default: "Optional"
@ -112,6 +112,10 @@ variable :DACAST_STREAM_CODE, :String, default: "Optional"
variable :FASTLY_API_KEY, :String, default: "Optional"
variable :FASTLY_SERVICE_ID, :String, default: "Optional"
# Honeycomb for monitoring and observability
# https://www.honeycomb.io/
variable :HONEYCOMB_API_KEY, :String, default: "Optional"
# Google analytic
# (https://developers.google.com/analytics/devguides/reporting/core/v4)
variable :GA_SERVICE_ACCOUNT_JSON, :String, default: "Optional"
@ -187,7 +191,7 @@ variable :SMARTY_STREETS_WEB_KEY, :String, default: "Optional"
group :production do
variable :SECRET_KEY_BASE, :String
# Timber
# (https://docs.timber.io/)
variable :SEND_LOGS_TO_TIMBER, :String # Defaults to true in production, false in development

View file

@ -48,6 +48,7 @@ gem "front_matter_parser", "~> 0.2" # Parse a front matter from syntactically co
gem "gemoji", "~> 3.0.1" # Character information and metadata for standard and custom emoji
gem "gibbon", "~> 3.3" # API wrapper for MailChimp's API
gem "google-api-client", "~> 0.33" # Client for accessing Google APIs
gem "honeycomb-beeline", "~> 1.1.1" # Monitoring and Observability gem
gem "html_truncator", "~> 0.4" # Truncate an HTML string properly
gem "htmlentities", "~> 4.3", ">= 4.3.4"
gem "httparty", "~> 0.17" # Makes http fun! Also, makes consuming restful web services dead easy

View file

@ -407,6 +407,8 @@ GEM
hashie (3.6.0)
heapy (0.1.4)
hkdf (0.3.0)
honeycomb-beeline (1.1.1)
libhoney (~> 1.8)
html_tokenizer (0.0.7)
html_truncator (0.4.2)
nokogiri (~> 1.5)
@ -463,6 +465,9 @@ GEM
kaminari-core (1.1.1)
launchy (2.4.3)
addressable (~> 2.3)
libhoney (1.14.0)
addressable (~> 2.0)
http (>= 2.0, < 5.0)
liquid (4.0.3)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
@ -916,6 +921,7 @@ DEPENDENCIES
guard (~> 2.15)
guard-livereload (~> 2.5)
guard-rspec (~> 4.7)
honeycomb-beeline (~> 1.1.1)
html_truncator (~> 0.4)
htmlentities (~> 4.3, >= 4.3.4)
httparty (~> 0.17)

View file

@ -0,0 +1,14 @@
Honeycomb.configure do |config|
config.write_key = ENV["HONEYCOMB_API_KEY"]
config.dataset = "rails"
config.notification_events = %w[
sql.active_record
render_template.action_view
render_partial.action_view
render_collection.action_view
process_action.action_controller
send_file.action_controller
send_data.action_controller
deliver.action_mailer
].freeze
end