Skip to content

Runtime Dependencies / Deprecation Warnings / More Visibility into Compatibility #537

Description

@nickagliano-st

Hello!

I ran into some pretty difficult-to-track-down bugs recently while upgrading a codebase from Rails 6.x to 7.x.

(This was exacerbated by the fact that I use ScoutAPM in production, but not staging.)

I was on the very old scout_apm (2.6.10) and upgrading to scout_apm (5.6.1) fixed it.

The specific error I was getting was on all of my models, Incorrect number of arguments passed: 2, expected 3..4, when calling Model.first, Model.find, Model.find_by, etc.

All this to say, I think it might save other developers a headache if there are more guardrails around this.

It could be deprecation warnings, a minimum Rails version set in gemspec, etc. I'm not very familiar with gemspecs or publishing gems--I'm more used to the consumer side of things--so I'm sorry if this issue/suggestion is malinformed.

Thank you!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions