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

uber-common / zap / 175 / 1
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 09 May 2016 11:01PM UTC
Files 10
Run time 0s
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

09 May 2016 11:00PM UTC coverage: 96.703%. Remained the same
175.1

push

travis-ci

akshayjshah
Add a sampling wrapper (#36)

* Add a spy logger

* Add a sampling wrapper

* Rebase on master

* Reset sampler counters each tick

Use the runtime's timer heap to manage a tick interval for sampling
loggers, but make sure that we don't put anything on the heap until we
start dropping logs. This should keep the non-sampled path fast, and
allow the sampled path to actually shed work.

* Make spy.New return the logger and the sink

* Sample by call site

* Bucket logs by message instead of call site

From my benchmarks, `runtime.Callers` is suprisingly expensive. It's
actually quite a bit cheaper to maintain a separate bucket for each
message, since hashing small-ish strings is quite fast.

* Benchmark sampling with a variety of messages

* Less string hashing

* Travis is very, very slow

* Comments from CR

440 of 455 relevant lines covered (96.7%)

13706.14 hits per line

Source Files on job 175.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 175
  • Travis Job 175.1
  • be56adda on github
  • Prev Job for on master (#171.1)
  • Next Job for on master (#181.3)
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