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

prometheus / client_ruby / 449
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 17 Jul 2019 12:17PM UTC
Jobs 4
Files 32
Run time 4min
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
449

Pull #145

travis-ci

web-flow
Avoid revalidating labelset keys on each metric observation

When declaring a metric, we declare what label keys will be used for it.
At that point, we validate that those are all valid keys (symbols,
match a given regex, etc).

Then, on each observation of the metric, we validate that the keys passed
in for the labels match the ones we were originally expecting, to make
sure all of those labels were set, but no others.

We were also, at that point, validating that the keys passed in are valid.
This validation is pretty slow, and it's redundant, since keys that aren't
valid won't match the expected ones anyway, so we can just compare just
that those match. This has quite a pronounced effect on performance.

Signed-off-by: Daniel Magliola <danielmagliola@gocardless.com>
Pull Request #145: Stop caching validated Labelsets, and improve Validation performance

6 of 6 new or added lines in 2 files covered. (100.0%)

1410 of 1410 relevant lines covered (100.0%)

42.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 449.1 (2.3.8) 17 Jul 2019 12:17PM UTC 0
100.0
Travis Job 449.1
2 449.2 (2.4.5) 17 Jul 2019 12:17PM UTC 0
100.0
Travis Job 449.2
3 449.3 (2.5.3) 17 Jul 2019 12:18PM UTC 0
100.0
Travis Job 449.3
5 449.5 (jruby-9.1.5.0) 17 Jul 2019 12:21PM UTC 0
0.0
Travis Job 449.5
Source Files on build 449
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #449
  • Pull Request #145
  • PR Base - 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