From 484f2948d441031b04222c0abe1d795c27f8f240 Mon Sep 17 00:00:00 2001 From: Tanner Mares Date: Fri, 21 Jun 2024 09:55:32 -0700 Subject: [PATCH] Update observability.mdx ## Why this was needed First time user just going through the docs! Noticed some typos. These docs are lovely by the way. --- docs/observability.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/observability.mdx b/docs/observability.mdx index c170512..21cd3cf 100644 --- a/docs/observability.mdx +++ b/docs/observability.mdx @@ -8,11 +8,11 @@ import DocLink from "../src/components/DocLink.js"; # Logging & Observability -One of the greatest things of AWS Lambda is that you get all the benfits of CloudWatch logging built into the platform. Logging is just a simple Ruby `puts` command away. Here are a few amazing things to help you succeed with good logging and observability patterns in AWS with CloudWatch. +One of the greatest things about AWS Lambda is that you get all the benefits of CloudWatch logging built into the platform. Logging is just a simple Ruby `puts` command away. Here are a few amazing things to help you succeed with good logging and observability patterns in AWS with CloudWatch. ## STDOUT is a Must! -Lambda is a read-only file system. The Lamby gem will set the `RAILS_LOG_TO_STDOUT` environment variable on your behalf. It also freedom patches the core Ruby `Logger` class to force STDOUT. That said, be on the lookout for any rogue disk-based logging you may have to address. Older Rails applications may have to use a pattern like this. +Lambda is a read-only file system. The Lamby gem will set the `RAILS_LOG_TO_STDOUT` environment variable on your behalf. It also patches the core Ruby `Logger` class to force STDOUT. That said, be on the lookout for any rogue disk-based logging you may have to address. Older Rails applications may have to use a pattern like this. ```ruby title="config/environments/production.rb" logger = ActiveSupport::Logger.new(STDOUT)