rails-37-style-infrastructure-and-testing-observability

Implement structured JSON logging, context injection, and Yabeda metrics for Rails applications.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy --skill rails-37-style-infrastructure-and-testing-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-37-style-infrastructure-and-testing-observability
Source: https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy/tree/main/rails-37-style-infrastructure-and-testing-observability
Command: npx skills add https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy --skill rails-37-style-infrastructure-and-testing-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the need for robust logging, metrics, and auditing in Rails applications, ensuring better visibility into application behavior and facilitating debugging and performance monitoring.

Core Features & Use Cases

  • Structured Logging: Implements JSON logging for easier parsing and analysis.
  • Contextual Logging: Injects tenant and user information into logs for better traceability.
  • Metrics Collection: Integrates Yabeda for comprehensive application metrics.
  • Auditing: Provides console auditing for compliance and security.
  • Use Case: A production Rails application experiences intermittent errors. By enabling structured and contextual logging, developers can quickly pinpoint the source of the errors by examining log entries that include tenant and user information, alongside application metrics provided by Yabeda.

Quick Start

Configure your Rails application to use structured JSON logging with tenant and user context.

Frequently Asked Questions about rails-37-style-infrastructure-and-testing-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement structured JSON logging with tenant and user context in Rails?

Structured JSON logging with tenant and user context in Rails is implemented by injecting multi-tenant and user information directly into log entries. This contextual logging ensures better traceability for debugging production application behavior.

How do I collect application metrics in Rails using Yabeda?

Application metrics in Rails are collected using the Yabeda metrics stack to monitor performance. This integration provides comprehensive visibility into application behavior and facilitates debugging through container metrics collection via OpenTelemetry Collector.

What is the best way to audit Rails console commands for compliance?

Auditing Rails console commands for compliance is achieved using the console1984 and audits1984 gems. This console auditing mechanism tracks interactive console sessions to ensure security and regulatory compliance within the application.

Can I configure separate loggers for background jobs in Rails?

Yes, separate loggers for background jobs can be configured in Rails applications. This configuration supports distinct log levels and health checks, allowing developers to isolate and analyze background processing behavior independently.

Why do I need observability and multi-tenant context injection in my Rails application?

Observability and multi-tenant context injection are needed to quickly pinpoint intermittent production errors in Rails. By including tenant and user information in logs and metrics, developers can trace issues across specific user contexts.

Does this Rails observability setup support health checks and log level configuration?

Yes, this Rails observability setup supports configuration for both health checks and log levels. These features allow developers to customize application monitoring, manage logging verbosity, and verify system status during debugging.