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

uber-common / opentracing-python-instrumentation / 325 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2018 08:27PM UTC
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

30 Dec 2018 08:26PM UTC coverage: 76.685% (+5.2%) from 71.526%
COVER=1

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

Source Files on job 325.1 (COVER=1)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 313
  • Travis Job 325.1
  • a8da3afe on github
  • Prev Job for COVER=1 on master (#317.1)
  • Next Job for COVER=1 on master (#326.1)
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