Skip to content

v0.5.0

Latest

Choose a tag to compare

@scottharvey scottharvey released this 16 Oct 02:08
· 77 commits to main since this release
  • JSON API, rails-pulse CLI, and MCP server. A read-only JSON API under /rails_pulse/api/v1, a rails-pulse executable, and an MCP server (rails-pulse mcp) give scripts, CI, and coding agents access to everything the dashboard shows: routes, requests, queries, jobs, job runs, exceptions, and deployments. rails-pulse install claude installs a Claude Code skill and rails-pulse install agents writes a Rails Pulse section into AGENTS.md.

  • Rails Pulse Cloud sync. With config.cloud.api_key and config.cloud.application set, hourly summaries, exception groups, deployments, and a per-minute health update are sent to Rails Pulse Cloud — never request URLs, SQL values, or exception messages. rails rails_pulse:cloud:preview prints exactly what would be sent. Set up with rails generate rails_pulse:install_cloud, migrate, and schedule RailsPulse::CloudHealthJob every minute.

  • Deployment before-and-after comparison. The deployments API, CLI, and MCP tool report whether each release made response time or error rate materially worse in the hour after the deploy than the hour before — or whether there was too little traffic to tell.

  • Insights: what needs attention, and whether your thresholds fit. The insights endpoint, rails-pulse insights show, and the rails_pulse_insights tool list routes, queries, and jobs past their thresholds over an hour, day, week, or month, and suggest an initializer change when a threshold is too noisy or never fires.

  • Coverage reporting for agents. rails-pulse coverage show reports what has been recorded, how recently, and any collection gaps, so missing data isn't mistaken for an all-clear.

  • Dropped requests are now visible. Each background writer records a per-minute heartbeat (queue depth and drops) into a new rails_pulse_events table. The dashboard shows a Tracking badge when a writer is backlogged or dropping, the Storage page lists every live writer, and rails rails_pulse:status exits 1 when anything was dropped in the last hour.

  • Richer rails rails_pulse:status. It now also checks whether the API and deployment tokens are set, whether SummaryJob has skipped hours, whether CleanupJob is running, hourly summary retention, and job tracking.

  • Time zone transparency. Every chart carries a zone badge, tooltips state the zone, and the custom date range picker says which zone its inputs are read in.

  • A query is the same query however many values it loads. WHERE id IN (…) with 3 ids and with 12 ids are now one entry instead of separate queries, each with its own stats, N+1 flags, and EXPLAIN. Entries recorded by earlier versions keep their old form until retention removes them.

  • Daily, weekly, and monthly summaries roll up from shorter periods instead of raw rows, so the summary job's memory no longer grows with period length or retention caps, and longer periods stay complete after raw data is pruned.

  • Hourly summaries are kept for 7 days instead of 2 (tunable via config.hourly_summary_retention), so deployment comparisons work for deploys from earlier in the week.

  • All timestamps display in the app's config.time_zone rather than the browser's or the server's OS zone.

  • Faster dashboard on large installs. The storage panel uses database row estimates instead of counting every table on each page load, cutting tens of seconds per view on big installs. (#363)

  • Dashboard health bar badges omit zero counts, and the Storage badge appears only under warning or critical pressure.

  • Dropped the request_store runtime dependency in favor of Rails' own ActiveSupport::CurrentAttributes.

  • Normalised SQL no longer leaks some string values (uncommon SQL string forms, MySQL values containing apostrophes, very small or large decimals), which also split a query's stats into one entry per value. (#335, #313)

  • Needs Attention and System Health no longer overcount traffic in windows longer than a day, which could inflate counts and raise an exception group's severity. (#338)

  • Daily charts no longer go blank after a daylight-saving change in zones that observe it.

  • Threshold recommendations no longer suggest a critical threshold equal to very_slow, and the query check reads the period's slowest query.

  • The dashboard no longer reports cleanup as blocked when expired requests are simply waiting for the next daily cleanup.

  • Weekly and monthly summaries now include the period's last day, and backfill dates are read in the app's time zone. (#279)

  • The exception-group row cap now applies to deletable groups only, so preserved and ignored groups no longer cause every cleanup run to delete the oldest deletable groups indefinitely. (#285)

  • Requires Ruby 3.2+ and Rails 7.2+. The previously advertised Ruby 3.1 / Rails 7.1 floors were never tested in CI and are now dropped.

  • Recording a deployment over HTTP requires config.deployment_token. The endpoint no longer accepts a dashboard login in place of the token. Set the token for CI, or use the rails_pulse:record_deployment task.

  • config.deployment_api_token is renamed to config.deployment_token. The old name still works as an alias; the new JSON API reads a separate config.api_token, so a token given to a coding agent cannot record a release.

  • Code that read RequestStore.store[:rails_pulse_request_id] directly (undocumented) must switch to RailsPulse::Current.rails_pulse_request_id.

  • Run rails generate rails_pulse:upgrade and rails db:migrate (or rails db:migrate:rails_pulse on a separate database) after updating. The new rails_pulse_events table is required — tracking pauses until it exists.

  • To use the JSON API, CLI, or MCP server, set config.api_token; to record deployments over HTTP, set config.deployment_token. Add gem "mcp" to your Gemfile to run the MCP server.

  • Queries recorded by earlier versions may appear twice on the Queries page until retention removes the old entries, due to the new value-list normalisation.

  • Run rails rails_pulse:status after upgrading — it exits 1 while anything still needs action.