Skip to content

Conversation

@gustoliveira
Copy link
Member

@gustoliveira gustoliveira commented Jan 13, 2026

Summary

Implements queue time tracking to measure time requests spend waiting before Rails processes them. Essential for identifying capacity bottlenecks.

Queue time = X-Request-Start (NGINX) → Rails processing start - network transfer time

Background

Initial queue time functionality was cherry-picked from a previous implementation that stopped working. The stacktrace bug was fixed in a separate PR, and this PR adds improvements on top.

Bug Fixes:

  • Fixed stacktrace serialization when nil or empty

Changes

New Features:

  • RequestMetrics class - Calculates queue time from request headers
  • Queue Time Span in APM timeline
  • Transaction labels: queue_time_ms, network_time_ms, request_id
image image image

DIGIT-2819 TICKET

@github-actions
Copy link

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@gustoliveira gustoliveira deleted the queue-metric branch January 21, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants