Dandelion is a fair source project. View the code on Github · See the design guide

Commits on Oct 10, 2026
38583f4

Sort /stats/traces by duration, slowest first, by default rather than newest first. Time and spans still sort from their headers. Sorting the unfiltered list by duration needs an index on duration_ms ({ duration_ms: -1 }) to avoid a collection scan on every page.

84a37fc

Drop the per-transaction page (/stats/transactions?name=): each transaction on /stats/transactions now links to /stats/traces filtered to it (by name, and by XHR when known). With it go what only that page used: the span tree merged across a transaction's recent traces (Trace.span_tree and SPAN_TREE_WINDOW), Trace.summary's by_xhr: false, and the span tree's Per request column. A single trace's page is now the only one with span trees, so its partials (_span_ops, _span_tree) are inlined into stats/trace.erb, Trace#span_tree builds its rows itself rather than through trace_span_tree and flatten_tree, and the by-op table groups the rows in the view rather than through Trace.span_totals.

4cc18e0

Test that the availability of every ticket type reads the ticket types once, not once per ticket type sold. With 10 ticket types each with a ticket, asking each type's availability while iterating them, as the event page's structured data does, ran 101 find ticket_types queries before the previous commit; it now runs at most 2.

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

b5f4670

Stop event pages querying ticket_types once per ticket type for every ticket type. Event#slots_taken, TicketGroup#slots_taken and TicketType#ticket_group_places_remaining found ticket types and groups with detect on the association, but Mongoid only keeps an association's documents once something has iterated all of them, and detect stops early, so every detect queried again. The event page's structured data asks each ticket type how many it has left, which calls slots_taken, so an event with 46 ticket types ran over 900 find ticket_types queries (a 13-second page in production, cut off at Sentry's 1,000-span limit). They now look types and groups up from to_a: in development the same event's page went from 929 queries and 3 seconds to 10 queries and 174 ms, with the same availability.

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

1718412

Fit the rest of the trace stats pages on a phone, so none scrolls sideways. Below 768px span trees show just the span and its time, stepping in 1rem a level rather than 2rem, and span descriptions break after slashes and dots; the traces list puts a failed trace's status badge beside its name in place of the Status column, and takes table-sm's padding. The traces list now loads traces.css, which it hadn't needed before.

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

ae3efc5

Make the trace stats tables fit a phone. On /stats/transactions, five fixed 6rem number columns took the whole width and squeezed the transaction name to a letter per line; below 768px the tables now show only the percentile filtered by, with Total and Count, in 4.5rem columns with table-sm's padding and an automatic layout (in a fixed one, the hidden cells' width went to DataTables' empty extra s rather than the name). A transaction's per-span table shows just time per request there, and the traces list drops its spans and commit columns. Names, ops and descriptions break after slashes and dots (wrap_at_separators) rather than anywhere. Wider screens are unchanged; the span tree still scrolls sideways on phones.

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

fbaf844

Store each trace's spans as JSON compressed with zstd (spans_zstd, a binary field), about a fifth the size of storing them as documents. Mongo holds documents uncompressed in its cache, where a day of traces would otherwise take a large share of the M20's memory; on disk, snappy already compressed them about 2.5 times, so the saving there is about half. Unpacking is about twice as fast as decoding the same spans from BSON. Spans can no longer be queried in Mongo; nothing in the app did, and every other field is unchanged.

Traces saved before this keep their spans in a spans array, which is no longer read, so they'd show with no spans and dilute the span trees' averages. Delete them after deploy (or let the 1-day TTL expire them): Mongoid.default_client[:traces].delete_many(spans: { '$exists' => true })

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

bb67da9

Store traces about 40% smaller (measured against the last deploy's traces). A span's id is now its position in the trace's spans, so each span keeps only its parent's position (none for children of the transaction itself) rather than two 16-character Sentry span ids; self time is left out when it's the whole time, as it is for every leaf span; and partials no longer set template.name, which repeated the template.render span's description. The span trees are the same.

Traces saved before this have spans in the old format, which would show as flat trees, so delete them after deploy (or let the 1-day TTL expire them): Mongoid.default_client[:traces].delete_many('spans.0.id' => { '$exists' => true })

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

d88ab54

Name the home page's transaction GET / rather than GET. Padrino gives the root route an empty original_path, so its traces showed up on /stats/transactions as a bare GET.

Claude-Session: https://claude.ai/code/session_018orwYmTexwt7dfwWdvHiRY

b72e72d

Make /stats/traces sortable by time, duration and spans, with DataTables' sort icons. The list is paginated, so headers reload the page sorted in Mongo rather than sorting it in the browser, and the filter form keeps the sort.

ac28cff

Give background jobs their own Jobs section on /stats/transactions. sentry-delayed_job names them by class and method (Notification#send_email_without_delay) rather than an HTTP method and path, so they were landing in Other.

235d176

Don't save or send traces of Render's health checks (GET /health), which were a quarter of all traces.

05c8a6c

Store traces about half the size and limit a transaction's span breakdowns to the last 3 hours, so a day of every request's traces fits the M20 and busy transactions' pages don't read gigabytes of spans. Each span keeps only what the pages use (ids, op, description, start, time and self time in ms, and status and data when they add anything), dropping the repeated trace id, timestamps, tags, origin and db.* data that repeats the description. The summary line still covers every stored trace; the by-op, tree and by-span sections and the time outside any span use the last 3 hours' traces and their own mean, and say so.

Traces saved before this have spans in the old format and need deleting after deploy: Mongoid.default_client[:traces].delete_many('spans.0.trace_id' => { '$exists' => true }). The TTL index on created_at is now 1 day (86400 seconds).

5bd036a

Save every request's Sentry trace to a traces collection in Mongo, and view them at /stats/transactions and /stats/traces, instead of paying Sentry to store spans. before_send_transaction saves each routed request (with each span's self time) and only sends to Sentry the share picked by SENTRY_SAMPLE_RATE, each with a Vernier profile; it defaults to 0, and SENTRY_TRACES_SAMPLE_RATE and SENTRY_PROFILES_SAMPLE_RATE are no longer read. Errors and logs still go to Sentry. Redirects and 4xx are kept (Sentry drops them by default, losing most form POSTs), and development traces without a DSN through a transport that discards everything.

/stats/transactions lists transactions in GET, POST and XHR sections with p50, p99, p100, total time and count, filtered by default to a p99 over 2 seconds. Each transaction's page shows its spans merged across its traces as a sortable tree drawn like Sentry's trace view, with time per request by op and by span. /stats/traces lists single traces with their status and commit, each with its own span tree.

The traces collection needs two indexes, created directly in the database: { name: 1, xhr: 1, created_at: -1, duration_ms: 1 }, which the summary query hints, and a TTL index on created_at expiring after 3 days.

3df5c9d

Group the stats sidebar links under headers (Growth, Community, Performance, Operations, Code, Tools). A .nav-header label sits over each group, and becomes a divider when the sidebar is minified. The design guide describes it.

bd4bd93

Skip .claude when scanning source files for Sentry span sources, as it holds worktrees and other copies of the app that aren't the running code.

1f6532f

Show how long ago the running commit was made in the stats sidebar's git badge (8m, 2h, 3d), with a second badge showing the hash while the link is hovered. The time comes from local git, or GitHub when the deploy has no history, looked up once per process. In development the local HEAD stands in for RENDER_GIT_COMMIT.

Commits on Oct 09, 2026
5888310

Delete the unused dandelion canvas animation partial (_animation.erb). Nothing renders it, and nothing has since it was added: the commit that added it for the signed-out home page never included it.

545e2ac

Make the motion rules match the code: only loading indicators (.bi-spin, .placeholder-glow, CKEditor's upload bar) loop, the older scale-on-hover exceptions aren't to be copied, and prefers-reduced-motion leaves the loading indicators running rather than stopping everything. The design guide's loading samples drop a 400ms border spinner and a gradient bar that nothing uses, and show the real spinner (bi-slash-lg) and a pulsing placeholder.

c450fe4

Rename the type scale so --font-size-base is body text: --font-size-sm (.875rem, body text, buttons, inputs and nav) becomes --font-size-base, and the old --font-size-base (1rem, h5 and .readable) becomes --font-size-md. The token called base was a step above the text most pages use. No sizes change. bootstrap5.css is rebuilt from bootstrap5.scss.