• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-ruby / 3611
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 10 Feb 2020 10:10PM CUT
Jobs 6
Files 100
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3611

Pull #902

travis-ci

web-flow
Add `request_begin` instrumentation callback

Adds a new instrumentation callback called `request_begin` which, as the
name suggests, is invoked before an HTTP request is dispatched. As
outlined originally in #900, the idea is that this will enable a set of
hooks that can be used for distributed tracing.

The PR also renames the existing `request` callback to `request_end`,
although the old name is still invoked for the time being for backwards
compatibility.

A special `user_data` property is passed to `request_begin` which allows
subscribers to set custom data that will be passed through to
`request_end` for any given request. This allows, for example, a user
assigned ID to be set for the request and recognized on both ends.

I chose the naming `_begin` and `_end` (as opposed to start/finish or
any other combination) based on the naming conventions of Ruby itself.

Fixes #900.
Pull Request #902: Add `request_begin` instrumentation callback

39 of 39 new or added lines in 2 files covered. (100.0%)

1983 of 2060 relevant lines covered (96.26%)

2947.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3611.1 (2.3) 10 Feb 2020 10:10PM CUT 0
96.36
Travis Job 3611.1
2 3611.2 (2.4) 10 Feb 2020 10:10PM CUT 0
96.36
Travis Job 3611.2
3 3611.3 (2.5) 10 Feb 2020 10:10PM CUT 0
96.36
Travis Job 3611.3
4 3611.4 (2.6) 10 Feb 2020 10:10PM CUT 0
96.34
Travis Job 3611.4
5 3611.5 (2.7) 10 Feb 2020 10:10PM CUT 0
96.34
Travis Job 3611.5
6 3611.6 (jruby-9.2.7.0) 10 Feb 2020 10:13PM CUT 0
0.0
Travis Job 3611.6
Source Files on build 3611
  • List 0
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next
  • Back to Repo
  • Travis Build #3611
  • Pull Request #902
  • PR Base - master (#3609)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc