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

prometheus / client_ruby / 661
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 14 Oct 2020 10:11AM UTC
Jobs 4
Files 32
Run time 2min
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
661

push

travis-ci

dmagliola
<a href="https://github.com/prometheus/client_ruby/commit/<a class=hub.com/prometheus/client_ruby/commit/d14e4dd1aee95791ddb69c9e7ce632305c013c91">d14e4dd1a<a href="https://github.com/prometheus/client_ruby/commit/d14e4dd1aee95791ddb69c9e7ce632305c013c91">&quot;&gt;Include SCRIPT_NAME when determining path in Collector

When determining the path for a request, `Rack::Request` prefixes the
`SCRIPT_NAME`, [as seen here][1].

This is a problem with our current code when using mountable engines,
where the engine part of the path gets lost.

This patch fixes that to include `SCRIPT_NAME` as part of the path.

NOTE: This is not backwards compatible. Labels will change in existing
metrics. We will cut a new major version once we ship this.

[1]: https://github.com/rack/rack/blob/</a><a class="double-link" href="https://github.com/prometheus/client_ruby/commit/<a class="double-link" href="https://github.com/prometheus/client_ruby/commit/294fd239a71aab805877790f0a92ee3c72e67d79">294fd239a</a>">294fd239a</a><a href="https://github.com/prometheus/client_ruby/commit/d14e4dd1aee95791ddb69c9e7ce632305c013c91">/lib/rack/request.rb#L512

1577 of 1577 relevant lines covered (100.0%)

45.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 661.1 (2.5.8) 14 Oct 2020 10:11AM UTC 0
100.0
Travis Job 661.1
2 661.2 (2.6.6) 14 Oct 2020 10:11AM UTC 0
100.0
Travis Job 661.2
3 661.3 (2.7.1) 14 Oct 2020 10:11AM UTC 0
100.0
Travis Job 661.3
4 661.4 (jruby-9.1.9.0) 14 Oct 2020 10:14AM UTC 0
0.0
Travis Job 661.4
Source Files on build 661
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #661
  • d14e4dd1 on github
  • Next Build on add_script_name_in_collector_path (#663)
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