Michael Kohl
33195929aa
Bump to Rails 7.0.2.2 MVP ( #15908 )
...
* Update gems
* Update more gems
* Update @rails/ujs package
* Explicitly add sprockets-rails
* Gemfile update
* Run bin/rails app:setup
* Update redis-actionpack
* Update stats initializer autoloading
* Update acts-as-taggable-on
* Disable signed: true option in session store
* Switch back to released version of redis-actionpack
* Update Gemfile.lock
* WIP
* Update Rails and gems
* Move hair_trigger back to released gem
* Add explicit requires to initializers
* Update Rails version
* Add more explicit require_relative calls
* Re-enable ForemStatsDriver
* Update schema
* Temp spec changes
* Bullet started raising errors?
* Fix broken spec
* Temporarily disable hair_trigger_spec
* Refactor
* Fix spec
* Enable use_rfc4122_namespaced_uuids
* Revert "Enable use_rfc4122_namespaced_uuids"
This reverts commit 5dac3722284bb08049586bfa943405f8a01289df.
* Temporarily deploy to canary
* Revert "Temporarily deploy to canary"
This reverts commit 04f8469501fab2a3177450baf051ff6259c41827.
* Update Containerfile
* Add comments to specs
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-03-30 15:00:33 -04:00
Jamie Gaskins
5dc11719be
Instrument AS::Cache#fetch_multi in Honeycomb ( #17023 )
...
See:
- https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch_multi
- https://guides.rubyonrails.org/v6.1.4.7/active_support_instrumentation.html#cache-fetch-hit-active-support
2022-03-28 13:37:26 -04:00
Jamie Gaskins
8e220dc97f
Add Rails cache instrumentation to Honeycomb ( #14880 )
...
It looks like Honeycomb uses ActiveSupport notifications to instrument
applications, based on the names of the `notification_events`. I pulled
this event name from the Rails guides:
https://guides.rubyonrails.org/active_support_instrumentation.html#active-support
2021-10-06 10:46:24 -04:00
Daniel Uber
e99e803867
Explicitly configure libhoney null client when no api key detected ( #14154 )
...
This configures the fallback behavior we're relying on in self-hosted
forems, and disables a warning that the fallback is happening.
2021-07-08 09:16:02 -05:00
Jamie Gaskins
d946b9fdc3
Don't use Honeycomb test mode in production ( #13997 )
...
* Don't use Honeycomb test mode in production
* Treat an empty Honeycomb API key the same as nil
* Avoid repeated RELEASE_FOOTPRINT warnings
2021-06-16 16:18:58 -04:00
Ben Halpern
45fb6504dc
[deploy] Replace HEROKU_SLUG_COMMIT with custom footprint (naive) ( #9904 )
...
* Replace HEROKU_SLUG_COMMIT with custom footprint (naive)
* Fully set RELEASE_FOOTPRINT with the expectation of setting it before launch
* Change tests
* Fix cache
2020-08-25 13:47:14 -04:00
rhymes
8126c5c2c1
Rubocop: Address Metrics/BlockLength violations ( #9246 )
...
* Address Metrics/BlockLength violations
* Add jbuilder to package auto correct
2020-07-10 13:53:32 -04:00
Molly Struve
6a4a99f162
[deploy] Track Deploys In Honeycomb ( #7935 )
2020-05-19 09:10:41 -05:00
Molly Struve
dbb5c752ab
[deploy] Sample Noisy Honeycomb Spans ( #7891 )
2020-05-18 10:36:01 -05:00
Molly Struve
3a49d3f0d1
[deploy] Revert "filter/sample noisy spans ( #7833 )" ( #7837 )
...
This reverts commit 716bb099fa .
2020-05-13 17:45:49 -05:00
Liz Fong-Jones
716bb099fa
[deploy] filter/sample noisy spans ( #7833 )
2020-05-13 17:07:09 -05:00
Molly Struve
1570580279
[deploy] Return the First 300 characters for Redis Commands ( #7778 )
2020-05-11 15:01:23 -05:00
Molly Struve
bbff0f757e
[deploy] dont configure Honeycomb if its disabled ( #6618 )
2020-05-11 11:59:18 -05:00
rhymes
5f831c9836
Remove extra HoneycombClient ( #6573 )
2020-03-11 10:34:14 +01:00
Molly Struve
6726c62e94
Scrub unused data sent to Honeycomb to save space ( #5512 ) [deploy]
2020-01-15 11:11:41 -05:00
Ben Halpern
628c044f3f
Check for existence of honeycomb before using it ( #4725 )
2019-11-05 08:38:42 -05:00
rhymes
0591362756
Use libhoney explicitly and group initializers ( #4699 ) [deploy]
...
* Use libhoney explicitly and group initializers
* Use Libhoney TestClient during tests
* Use test client for Honeycomb during tests as well
2019-11-04 11:55:04 +00:00
Molly Struve
faaf6e35f1
Create custom HoneycombClient ( #4692 ) [deploy]
2019-11-01 17:11:57 -04:00
Molly Struve
dc72b4f1fa
Add Honeycomb beeline gem for monitoring and observability ( #4649 )
2019-10-30 12:02:31 -04:00
rhymes
3b4bda89df
Upgrade Honeycomb gem, fix and improve RssReader tests ( #2319 )
...
* Switch from deprecated honeycomb-rails to honeycomb-beeline
* Improve error handling, tests and add refactoring
* Fix multiple fetching test and add one more
The test wasn't actually testing the correct behavior, because the class
by default force fetches. It worked because it wasn't reloading the user
from the database.
* Test that Honeycomb's client is doing its thing
* Use some defensive programming to avoid any possible problem during shutdown
* Fix typo
* Use the new API to add fields to the current measured event
* Use default instrumentation and add user info to event
* Replace user.email with user.username, less personal data around
* Use mocking instead of calling Honeycomb.init
* Freeze time before traveling
* Remove a flaky test dependent on rand
2019-04-07 15:27:53 -04:00
rhymes
a1787d0702
Fixed some Style/* rubocop violations ( #2314 )
...
* Fix Style/FormatString and Style/TrivialAccessors
* Fix Style/NegatedIf and Style/DoubleNegation
* Style/ClassAndModuleChildren is already enabled by default
* Fix Style/GlobalVars
* Group all style/ cops inside rubocop config file
2019-04-06 14:24:33 -04:00
rhymes
6553f08d94
Rubocop cleanups ( #1415 )
...
* Update rubocop-todo.yml with new violations
* Fix Layout/EmptyLine* rules
* Fix Layout/Indentation* rules
* Fix remaining Layout/* rules
* Fix Lint/DuplicateMethods by removing unused accessor
* Fix Lint/IneffectiveAccessModifier
* Fix Lint/MissingCopEnableDirective
* Re-run rubocop auto gen config
* Fix Layout/RescueEnsureAlignment
* Fix Naming/* rules
* Fix some RSpec/* rules
* Fix typos
* Fix RSpec/LetBeforeExamples
* Series should only be an attr_writer, not an attr_accessor
* Fix RSpec/InstanceVariable
* Fix RSpec/InstanceVariable
* Fix RSpec/RepeatedDescription and RSpec/RepeatedExample
* Fix Style/ClassAndModuleChildren
* Fix Style/ConditionalAssignment
* Fix some Style/* rules
* Trigger Travis CI build because failing tests are not failing locally
* Revert "Fix Style/ClassAndModuleChildren"
This reverts commit 1686801d8a1516ba1894f79e24401a20dea65f99.
2019-01-02 11:20:02 -05:00
Christine Yen
cff6b5d589
Add Honeycomb gem and initial instrumentation ( #695 )
...
* Add basic Honeycomb initializers
* Add some basic instrumentation, capture basic IDs
* Correctly alphabetize Gemfile, embed env in dataset names
* Actually reorder Gemfile because I can read
* Add custom tracing instrumentation to RssReader
* Improve timing/tracing info in RssReader
* Even make sure Errors show up in trace if possible
* Make sure we capture this as Rails traffic
* Swap in dev/test Libhoney::Clients as appropriate
* Move context-snagging bits into lib/instrumentation.rb
* Merging Gemfile lines seems to be my Achilles heel
2018-11-28 10:08:27 -05:00