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

prometheus / client_ruby / 616
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 08 Apr 2020 07:28PM UTC
Jobs 4
Files 32
Run time 3min
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
616

Pull #184

travis-ci

web-flow
Add a method to clear the registry

Clearing the registry is something we would typically do in development
and test environments.

For instance, in Rails apps, this method can be used when reloading
classes so that auto-loaded files that register Prometheus metrics can
be reloaded:

```rb
Rails.application.reloader.after_class_unload do
  Prometheus::Client.registry.clear
end
```

Not clearing the registry before classes are reloaded would result in
the registry raising an `AlreadyRegisteredError` when a file
registering a metric is reloaded.

Signed-off-by: Matthieu Prat <matthieuprat@gocardless.com>
Pull Request #184: Add a method to clear the registry

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

1552 of 1552 relevant lines covered (100.0%)

44.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 616.1 (2.3.8) 08 Apr 2020 07:28PM UTC 0
100.0
Travis Job 616.1
2 616.2 (2.4.5) 08 Apr 2020 07:28PM UTC 0
100.0
Travis Job 616.2
3 616.3 (2.5.3) 08 Apr 2020 07:28PM UTC 0
100.0
Travis Job 616.3
5 616.5 (jruby-9.1.9.0) 08 Apr 2020 07:31PM UTC 0
0.0
Travis Job 616.5
Source Files on build 616
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #616
  • Pull Request #184
  • PR Base - master (#615)
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