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

uber-common / opentracing-python-instrumentation / 325
88%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2018 08:27PM UTC
Jobs 1
Files 20
Run time 1s
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
325

push

travis-ci

yurishkuro
Add `response_handler_hook` to `requests` instrumentation (#66)

As a software engineer, I'd like to be able to
add custom tags to the span depending of the response.
This PR adds an ability to set response_handler_hook using
set_response_handler_hook method of RequestsPatcher.
response_handler_hook should be a method that accepts response
and span as positional arguments which will be provided by send_wrapper
just after the response is received.

These changes also:

 - Add base Patcher

 - Refactor opentracing_instrumentation/client_hooks/requests.py

 - Add tests for the requests

 - Simplify the singleton decorator

 - Fix strict_redis.reset_patches method

129 of 197 branches covered (65.48%)

Branch coverage included in aggregate %.

690 of 871 relevant lines covered (79.22%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 325.1 (COVER=1) 30 Dec 2018 08:27PM UTC 0
76.69
Travis Job 325.1
Source Files on build 325
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #325
  • a8da3afe on github
  • Prev Build on master (#317)
  • Next Build on master (#326)
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