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

Yelp / py_zipkin / 429
0%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2019 01:42AM UTC
Jobs 7
Files 14
Run time 5min
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
429

push

travis-ci

web-flow
Fix multithreading issues (#118)

* Fix multithreading issues

This is an alternative implementation for #111.

I didn't particularly like that everything was called *Storage which was
very confusing. Also having to subclass LocalStorage (or SpanStorage)
and override a property felt weird and error prone.
Also the suggested way of getting the current zipkin_attrs by calling
ThreadLocalStack().get() felt weird since why do I need to create a new
object every time?

This PR takes a different approach. Users will need to pass in a
`get_tracer` function, which will be invoked at runtime every time we
need to access the tracer. That makes it work in multithreaded
environments.
Also instead of calling it storage I called the new class Tracer. In the
future I'll probably attach also the transport handlers to it,
completely removing the need for the logging_context.

If users want to access the current context they can just call the
`get_zipkin_attrs()` tracer's function. To access the tracer it's enough
to use `get_default_tracer()` which will return the correct one.

96 of 96 new or added lines in 5 files covered. (100.0%)

804 of 804 relevant lines covered (100.0%)

5.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 429.1 (TOXENV=pre-commit) 14 Feb 2019 01:42AM UTC 0
Travis Job 429.1
2 429.2 (TOXENV=py27) 14 Feb 2019 01:44AM UTC 0
100.0
Travis Job 429.2
3 429.3 (TOXENV=py34) 14 Feb 2019 01:44AM UTC 0
100.0
Travis Job 429.3
4 429.4 (TOXENV=py35) 14 Feb 2019 01:48AM UTC 0
100.0
Travis Job 429.4
5 429.5 (TOXENV=py36) 14 Feb 2019 01:46AM UTC 0
100.0
Travis Job 429.5
6 429.6 (TOXENV=py37) 14 Feb 2019 01:47AM UTC 0
100.0
Travis Job 429.6
7 429.7 (TOXENV=flake8) 14 Feb 2019 01:48AM UTC 0
Travis Job 429.7
Source Files on build 429
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #429
  • 071a41aa on github
  • Prev Build on master (#427)
  • Next Build on master (#430)
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