docbrown/app
Jamie Gaskins 5a0a46887c
Instrument EmailDigestArticleCollector (#13153)
* Instrument EmailDigestArticleCollector

On DEV, since we skip this with sidekiq-cron and instead process them
inline using Heroku Scheduler (which is not instrumented), we miss out
on all instrumentation for this process and have no idea how long it
takes to process each user.

With this instrumentation in place, we can see how long it takes to
process each user and aggregate them to see how long it takes to process
all users.

This commit also adds an Instrumentation mixin that we can use to
instrument blocks easily:

    instrument "MyClass.my_method", tags: { article: article.id } do |span|
      # ...
    end

* Add Instrumentation mixin

Oops, completely forgot to commit this file
2021-03-29 09:33:32 -04:00
..
assets Re-add mention autocomplete to comments, fixing bugs (#13126) 2021-03-26 13:43:05 +00:00
black_box Small adjustment to blackbox.rb (#10961) 2020-10-20 21:14:56 -04:00
controllers Adds flash messages to indicate successful actions for Pages (#13132) [deploy] 2021-03-25 10:50:49 -06:00
decorators Make definition of new user configurable (#12999) 2021-03-23 14:13:06 +07:00
errors Prevent suspended users from self-deleting and returning (#12503) 2021-02-11 09:28:59 +07:00
helpers Part 2: Shows Relevant Posts in Homepage Sidebar (#12942) [deploy] 2021-03-25 08:03:55 -06:00
javascript Re-add mention autocomplete to comments, fixing bugs (#13126) 2021-03-26 13:43:05 +00:00
lib Remove buffer gem and related code: step 1 (#12993) 2021-03-24 09:58:38 +07:00
liquid_tags improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
mailers Email confirmation to abuse reports (#12557) 2021-02-03 22:59:50 +03:00
middlewares Move TimeZoneSetter middleware in proper place (#11336) 2020-11-09 17:11:10 +01:00
models Remove ignored Buffer columns (#13139) 2021-03-26 17:37:29 +01:00
policies Remove buffer gem and related code: step 1 (#12993) 2021-03-24 09:58:38 +07:00
queries Part 2: Shows Relevant Posts in Homepage Sidebar (#12942) [deploy] 2021-03-25 08:03:55 -06:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Video max width (#12436) 2021-01-26 15:12:37 +01:00
serializers [Search 2.0] Reading list (#13052) 2021-03-24 15:40:00 +01:00
services Instrument EmailDigestArticleCollector (#13153) 2021-03-29 09:33:32 -04:00
uploaders Bump carrierwave from 2.1.1 to 2.2.0 (#12802) 2021-02-25 10:53:25 +01:00
validators Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00
view_objects Move GeneratedImage to Images::GenerateSocialmage (#11691) 2020-12-02 11:03:14 +07:00
views 15 min fix - improve reliability of autocomplete cypress test (#13147) 2021-03-26 16:23:19 +00:00
workers reenable article rescoring when moderators flag users (#12983) 2021-03-16 14:04:13 -05:00