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

ruby-grape / grape / 26721434661
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refactor/inline-mustermann-grape
DEFAULT BRANCH: master
Ran 31 May 2026 06:53PM UTC
Jobs 30
Files 166
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

31 May 2026 06:53PM UTC coverage: 96.838% (-0.03%) from 96.863%
26721434661

push

github

ericproulx
Skip per-request instrumentation work when no subscribers are listening

Grape fires up to six ActiveSupport::Notifications.instrument calls per
request (endpoint run / render / run_validators / run_filters and
format_response). Each builds a payload Hash and enters the notification
machinery on every request, even when nothing is subscribed to the event.

Guard each emission behind ActiveSupport::Notifications.notifier.listening?
via a small private instrument_<event> method on the owning class. With no
subscriber the block runs directly, skipping the payload Hash and the
instrument dispatch; the block is forwarded anonymously so nothing extra is
allocated unless a subscriber is present. Behaviour is unchanged when a
subscriber exists - same events, same payloads.

Saves one Hash allocation per emitted event (-6 allocations/request on an
endpoint with before/after filters and params), ~+4.6% median throughput
under YJIT on that endpoint; scales with events emitted per request.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

1112 of 1203 branches covered (92.44%)

Branch coverage included in aggregate %.

19 of 20 new or added lines in 2 files covered. (95.0%)

3543 of 3604 relevant lines covered (98.31%)

23212.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.35
-0.6% lib/grape/endpoint.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_0.gemfile - 26721434661.1 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 26721434661.2 31 May 2026 06:54PM UTC 165
58.53
GitHub Action Run
3 run-4.0-gemfiles/grape_entity.gemfile - 26721434661.3 31 May 2026 06:53PM UTC 165
50.39
GitHub Action Run
4 run-3.4-gemfiles/rack_3_0.gemfile - 26721434661.4 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 26721434661.5 31 May 2026 06:53PM UTC 165
37.14
GitHub Action Run
6 run-3.4-gemfiles/rails_8_0.gemfile - 26721434661.6 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 26721434661.7 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
8 run-4.0-gemfiles/hashie.gemfile - 26721434661.8 31 May 2026 06:53PM UTC 165
62.65
GitHub Action Run
9 run-3.4-gemfiles/rack_3_1.gemfile - 26721434661.9 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
10 run-3.4-Gemfile - 26721434661.10 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 26721434661.11 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
12 run-4.0-gemfiles/rack_3_2.gemfile - 26721434661.12 31 May 2026 06:53PM UTC 165
95.65
GitHub Action Run
13 run-4.0-Gemfile - 26721434661.13 31 May 2026 06:53PM UTC 165
95.65
GitHub Action Run
14 run-4.0-gemfiles/rails_7_2.gemfile - 26721434661.14 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
15 run-3.4-gemfiles/rack_2_2.gemfile - 26721434661.15 31 May 2026 06:53PM UTC 165
95.61
GitHub Action Run
16 run-4.0-gemfiles/rack_3_1.gemfile - 26721434661.16 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
17 run-3.3-Gemfile - 26721434661.17 31 May 2026 06:53PM UTC 165
95.65
GitHub Action Run
18 run-4.0-gemfiles/rails_8_0.gemfile - 26721434661.18 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
19 run-4.0-gemfiles/multi_json.gemfile - 26721434661.19 31 May 2026 06:54PM UTC 165
37.14
GitHub Action Run
20 run-3.3-gemfiles/rack_3_2.gemfile - 26721434661.20 31 May 2026 06:53PM UTC 165
95.65
GitHub Action Run
21 run-4.0-gemfiles/grape_swagger.gemfile - 26721434661.21 31 May 2026 06:53PM UTC 165
55.43
GitHub Action Run
22 run-3.3-gemfiles/rails_7_2.gemfile - 26721434661.22 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
23 run-3.4-gemfiles/rack_3_2.gemfile - 26721434661.23 31 May 2026 06:54PM UTC 165
95.65
GitHub Action Run
24 run-3.3-gemfiles/rack_3_1.gemfile - 26721434661.24 31 May 2026 06:53PM UTC 165
95.65
GitHub Action Run
25 run-3.4-gemfiles/rails_8_1.gemfile - 26721434661.25 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
26 run-3.4-gemfiles/rails_7_2.gemfile - 26721434661.26 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
27 run-4.0-gemfiles/rails_8_1.gemfile - 26721434661.27 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 26721434661.28 31 May 2026 06:54PM UTC 166
95.65
GitHub Action Run
29 run-4.0-gemfiles/rack_2_2.gemfile - 26721434661.29 31 May 2026 06:54PM UTC 165
95.61
GitHub Action Run
30 run-3.3-gemfiles/rack_2_2.gemfile - 26721434661.30 31 May 2026 06:53PM UTC 165
95.6
GitHub Action Run
Source Files on build 26721434661
  • Tree
  • List 166
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26721434661
  • 4ecad51b on github
  • Prev Build on master (#26680646984)
  • Next Build on perf/instrument-only-when-subscribed (#26721499467)
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