ActiveSupport::Notifications

Episode #409 by Teacher's Avatar David Kimura

Summary

In this episode, we'll dive into ActiveSupport::Notifications to perform simple metrics. We'll then use this technique to troubleshoot and pinpoint where slow running lines of code are. It can be a great debugging technique when trying to deal with slow requests or functions.
rails performance metrics 13:47

Chapters

  • Introduction (0:00)
  • Creating a basic subscription (0:50)
  • Reviewing the logs (1:42)
  • LImiting what we're subscribing to (2:34)
  • Digesting the subscription (3:50)
  • Tracking only slow requests (5:53)
  • Custom notifications (7:35)
  • Don't abuse notifications (8:53)
  • Debugging performance issues (9:29)
  • Final Thoughts (12:21)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams