You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add configuration for capturing queue time
default to true
* Extract, normalize & add queue time to transaction
* Test app for queue time in Sentry
* Fix redos issue
* move test app
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Neel Shah <neel.shah@sentry.io>
* Delete sentry_queue_test.rb
* ⏰👮🏻
* change name
* remove upper bounds
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* fix(rack): Validate t= prefixed values in parse_request_start_header
Non-numeric t= values like "t=invalid" or "t=" were silently converted
to 0.0 by Ruby's String#to_f, resulting in a Unix epoch timestamp and a
queue time of ~56 years instead of nil.
Apply the same numeric regex guard already used for raw timestamps to
the t= branch before calling to_f.
Co-Authored-By: Claude <noreply@anthropic.com>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* Update sentry-ruby/lib/sentry/rack/capture_exceptions.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
* fix(rack): Handle whitespace and comma-separated X-Request-Start values
parse_request_start_header returned nil for headers that arrived with
leading/trailing whitespace or as comma-separated values (multiple
header occurrences collapsed by a proxy). Strip whitespace from the
token and split on commas, taking the first (earliest) timestamp.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(rack): Coerce puma.request_body_wait to Float before comparison
When env["puma.request_body_wait"] is a String (e.g. serialized by
middleware), the `> 0` comparison raised ArgumentError, which was
silently swallowed by the broad rescue, causing queue time to be
dropped even with a valid X-Request-Start header.
Call to_f on String values before the comparison. Numeric strings
("40") convert correctly; non-numeric strings ("N/A") become 0.0
and are treated as absent, so total_time_ms is returned unchanged.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Neel Shah <neel.shah@sentry.io>
Co-authored-by: Peter Solnica <peter@solnica.online>
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments