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

Yelp / py_zipkin / 429 / 4
0%
master: 0%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2019 01:48AM UTC
Files 14
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

14 Feb 2019 01:40AM UTC coverage: 100.0%. Remained the same
TOXENV=py35

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.

804 of 804 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 429.4 (TOXENV=py35)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 378
  • Travis Job 429.4
  • 071a41aa on github
  • Prev Job for TOXENV=py35 on master (#427.4)
  • Next Job for TOXENV=py35 on master (#430.4)
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