AI Powered Logs

Episode #558 by Teacher's Avatar David Kimura

Summary

In this episode, we will create a middleware that will capture the Rails logs and use an AI model to analyze the logs for any potential performance impact or issues.
rails ai development 18:16

Chapters

  • Introduction (0:00)
  • Setting up OpenAI (2:09)
  • Procfile.dev (3:09)
  • Inserting Middleware (3:37)
  • Injecting logs into the buffer (11:26)
  • Ollama call (13:43)
  • Testing the analysis (16:32)
  • Final Thoughts (17:29)
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