Skip to content

Report grape gem version in environment metadata#1534

Merged
tombruijn merged 2 commits into
mainfrom
add-grape-to-supported-gems
Jul 2, 2026
Merged

Report grape gem version in environment metadata#1534
tombruijn merged 2 commits into
mainfrom
add-grape-to-supported-gems

Conversation

@serenachou

Copy link
Copy Markdown
Contributor

Summary

Adds grape to the SUPPORTED_GEMS list in lib/appsignal/environment.rb so the agent reports ruby_grape_version in the environment metadata.

Why

Grape is a supported integration — it has a loader (lib/appsignal/loaders/grape.rb, Appsignal.load(:grape)) and dedicated Appsignal::Rack::GrapeMiddleware. But grape was missing from SUPPORTED_GEMS, the allowlist that report_supported_gems iterates to emit ruby_<gem>_version environment metadata.

The practical effect: Grape applications never report a ruby_grape_version, so Grape adoption and version usage are invisible in our telemetry — even though the integration works. Its three sibling loader-based frameworks (hanami, sinatra, padrino) are all already in the list and report correctly; grape was simply left out.

This was surfaced while analyzing framework adoption across the customer base: Grape came back as "0" purely because of this omission, not because no one uses it.

Change

One entry added to SUPPORTED_GEMS (alphabetical, between faraday and gvltools), plus a changeset. No behavior change beyond one additional gem version being reported when present in the bundle.

Testing

.report_supported_gems is covered in spec/lib/appsignal/environment_spec.rb; it exercises the mechanism via rack/rake rather than asserting the full list, so no test changes are required.

Grape is a supported integration (loaded via Appsignal.load(:grape)) but was missing from the SUPPORTED_GEMS list that drives environment gem-version reporting. As a result, Grape apps never reported a ruby_grape_version, making Grape adoption invisible in telemetry (unlike its sibling loader frameworks hanami, sinatra, and padrino, which are all in the list). Add grape so its version is reported like the others.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@backlog-helper

backlog-helper Bot commented Jul 1, 2026

Copy link
Copy Markdown

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

@serenachou

Copy link
Copy Markdown
Contributor Author

@tombruijn I was looking into telemetry to see how many folks are using Grape etc - and Claude flagged that this was missing from the reporting. Please review, apologies if this omission was intentional

Comment thread .changesets/report-grape-in-supported-gems.md Outdated
@tombruijn
tombruijn merged commit 6e91223 into main Jul 2, 2026
213 of 214 checks passed
@tombruijn tombruijn added the chore A small task that takes a day or two at the most. label Jul 2, 2026
@serenachou
serenachou deleted the add-grape-to-supported-gems branch July 7, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants