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

uber-common / zap / 175
97%

Build:
DEFAULT BRANCH: master
Ran 09 May 2016 11:01PM UTC
Jobs 3
Files 10
Run time 1min
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
175

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%)

41112.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 175.1 09 May 2016 11:01PM UTC 0
96.7
Travis Job 175.1
2 175.2 09 May 2016 11:01PM UTC 0
96.7
Travis Job 175.2
3 175.3 09 May 2016 11:02PM UTC 0
96.7
Travis Job 175.3
Source Files on build 175
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #175
  • be56adda on github
  • Prev Build on master (#171)
  • Next Build on master (#181)
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