Skip to content

Ruby Stack Trace Missing Gem Folder Names in Sentry Reported Paths #2407

@Kobby-Bawuah

Description

@Kobby-Bawuah

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

A user is reporting that Sentry is modifying Ruby stack traces by stripping out the gem folder names, making it difficult to trace errors back to their source. Specifically, when Sentry displays paths like active_record/connection_adapters/abstract_mysql_adapter.rb, it omits the gem folder name, which should be something like activerecord-5.2.4.1/. The user needs the full gem path preserved to navigate the stack trace in their IDE and identify the correct gem, as internal paths within gems can be ambiguous without the versioned folder name.

Expected Result

The stack trace paths should include the full gem folder names (e.g., activerecord-5.2.4.1/) so that users can easily navigate them within their IDEs.

Actual Result

Sentry is stripping the gem folder names from the paths, leaving only the internal paths within the gem (e.g., active_record/connection_adapters/abstract_mysql_adapter.rb). This makes it difficult to map these paths to the real gem files on the system.

Product Area

Processing

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions