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

stripe / stripe-ruby / 3530
97%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2019 10:19PM UTC
Jobs 5
Files 297
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
3530

push

travis-ci

brandur-stripe
Add simple instrumentation callback (#870)

* Add simple instrumentation callback

We used to insert Faraday::Request::Instrumentation into our Faraday middleware
stack to be able to instrument Stripe calls with StatsD. With Faraday being
removed in version 5, this required some rework. This commit implements a simple
callback system that can be used with any kind of instrumentation system.

* Add a topic to Stripe::Instrumentation notifications

... and a :request topic to subscribe to

* Use a RequestEvent value object instead of positional args in callback

This way the RequestLogContext object doesn't get exposed externally. Since the
same value object can be received by multiple subscribers it is frozen to
prevent accidental mutations across threads.

* Relocate tests for instrumentation and add more tests

5874 of 6105 relevant lines covered (96.22%)

2370.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3530.1 (2.3) 07 Nov 2019 10:19PM UTC 0
96.29
Travis Job 3530.1
2 3530.2 (2.4) 07 Nov 2019 10:19PM UTC 0
96.29
Travis Job 3530.2
3 3530.3 (2.5) 07 Nov 2019 10:19PM UTC 0
96.29
Travis Job 3530.3
4 3530.4 (2.6) 07 Nov 2019 10:19PM UTC 0
96.26
Travis Job 3530.4
5 3530.5 (jruby-9.2.7.0) 07 Nov 2019 10:22PM UTC 0
0.0
Travis Job 3530.5
Source Files on build 3530
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3530
  • 26a0964e on github
  • Prev Build on master (#3528)
  • Next Build on master (#3531)
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

© 2026 Coveralls, Inc