GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove stacktrace trimming from the SDK by sl0thentr0py · Pull Request #2714 · getsentry/sentry-ruby

Conversation

@sl0thentr0py

@sl0thentr0py sl0thentr0py commented Sep 23, 2025

Copy link
Copy Markdown
Member

Description

Relay already has an updated solution implemented in relay#3905 that handles the recursive case by trimming from both sides so this logic in the SDK is now redundant.

Issues

  • resolves: Stack Trace Trimming is trimming relevant frames #2018
  • part of: Remove unnecessary SDK-side data truncation and rely on Relay for handling max length limits. #2675
  • resolves: RUBY-35

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

seer-by-sentry[bot] reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@linear

linear Bot commented Sep 23, 2025

Copy link
Copy Markdown

RUBY-35 Stack Trace Trimming is trimming relevant frames

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sl0thentr0py
sl0thentr0py force-pushed the 6.0-dev branch from 179dd87 to 6e39d31 Compare September 23, 2025 11:58
@sl0thentr0py
Remove stacktrace trimming from the SDK
c776a86
@sl0thentr0py
sl0thentr0py force-pushed the neel/simplify-truncation branch from 546112c to c776a86 Compare September 23, 2025 11:59
@codecov

codecov Bot commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (6e39d31) to head (c776a86).
⚠️ Report is 1 commits behind head on 6.0-dev.

Additional details and impacted files
@@             Coverage Diff             @@
##           6.0-dev    #2714      +/-   ##
===========================================
- Coverage    97.43%   97.41%   -0.03%     
===========================================
  Files          143      143              
  Lines         5617     5605      -12     
===========================================
- Hits          5473     5460      -13     
- Misses         144      145       +1     
Components Coverage Δ
sentry-ruby 97.69% <ø> (-0.04%) ⬇️
sentry-rails 96.59% <ø> (ø)
sentry-sidekiq 96.57% <ø> (ø)
sentry-resque 94.44% <ø> (ø)
sentry-delayed_job 94.68% <ø> (ø)
sentry-opentelemetry 99.31% <ø> (ø)
Files with missing lines Coverage Δ
sentry-ruby/lib/sentry/envelope/item.rb 94.73% <ø> (-3.27%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sl0thentr0py
sl0thentr0py requested a review from solnic September 23, 2025 12:13
solnic
solnic approved these changes Sep 23, 2025
View reviewed changes

@solnic solnic left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best types of PRs 🙃 ✅

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sl0thentr0py reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@sl0thentr0py
sl0thentr0py merged commit ed7a2db into 6.0-dev Sep 23, 2025
@sl0thentr0py
sl0thentr0py deleted the neel/simplify-truncation branch September 23, 2025 12:16
@sl0thentr0py sl0thentr0py mentioned this pull request Sep 23, 2025
6.0 major #2352
Merged
sl0thentr0py added a commit that referenced this pull request Oct 21, 2025
@sl0thentr0py
Bump oversized stacktrace trunction to 500 on both sides
2ca83e4
Revert "Remove stacktrace trimming from the SDK (#2714)"

This reverts commit ed7a2db.
sl0thentr0py added a commit that referenced this pull request Oct 22, 2025
@sl0thentr0py @st0012
6.0 major (#2352)
a1bd7e2
* Drop `async` configuration (#1894)

* Migrate from to_hash to to_h (#2351)

* Migrate from to_hash to to_h

As @solnic pointed out in #2350 (comment)
`to_hash` has special meaning in Ruby and could be called implicitly
in contexts like double splatting argument. So we should switch to `to_h`
to avoid potential issues.

* Fix specs after rebase

* Add before_send_check_in (#2703)

* Cleanup before_send to only apply to ErrorEvent
* remove the Hash deprecation message

* Archive sentry-raven (#2708)

Moved to https://github.com/getsentry/raven-ruby

* Remove stacktrace trimming from the SDK (#2714)

* Default config.enabled_environments to nil instead of [] (#2716)

* Remove :monotonic_active_support_logger (#2717)

* Add `config.trace_ignore_status_codes` to control which status codes don't get traced (#2725)

* Add config.trace_ignore_status_codes to control which status codes don't
get traced

* Change implementation to Range

* Don't send  client reports for profiles if profiling is disabled (#2728)

* Remove  and  and all metrics related code (#2729)

* Remove deprecated `config.capture_exception_frame_locals` (#2730)

* Remove deprecated capture_exception_frame_locals

* Remove deprecated config.enable_tracing (#2731)

* Remove deprecated config.enable_tracing

* Remove deprecated `config.logger` (#2732)

* Remove deprecated config.logger

* Remove deprecated Sentry::Rails::Tracing::ActionControllerSubscriber (#2733)

* Remove Transaction deprecations (#2736)

* Remove deprecated Event#configuration (#2740)

* Remove deprecated client methods (#2741)

* Bump required_ruby_version to 2.7 (#2743)

* Bump minimum rails version in `sentry-rails` to `5.2.0`
* Bump minimum sidekiq version in `sentry-sidekiq` to `5.0`
* Cleanup CI

* Remove hub from Transaction#initialize (#2739)

* Move examples out of SDK (#2746)

available at https://github.com/getsentry/examples/tree/master/ruby

* Add new config.profiles_sample_interval (#2745)

* Always set up the StructuredLogger and no-op capture_log_event if logs (#2752)

are disabled

* Make request body reading safe to rewind (#2754)

* Bump oversized stacktrace trunction to 500 on both sides

Revert "Remove stacktrace trimming from the SDK (#2714)"

This reverts commit ed7a2db.

---------

Co-authored-by: Stan Lo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@solnic solnic solnic approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@sl0thentr0py @solnic
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.