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 hub from Transaction#initialize by sl0thentr0py · Pull Request #2739 · getsentry/sentry-ruby

Conversation

@sl0thentr0py

@sl0thentr0py sl0thentr0py commented Oct 7, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Issues

  • Go over deprecations #2718
  • RUBY-99

#skip-changelog

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
@sl0thentr0py
sl0thentr0py force-pushed the neel/cleanup-hub-tx-init branch from 0e0fd0e to 92a1327 Compare October 7, 2025 14:15
sl0thentr0py
sl0thentr0py commented Oct 7, 2025
View reviewed changes
Comment thread sentry-ruby/lib/sentry/utils/logging_helper.rb
end

# @!visibility private
def sdk_logger

@sl0thentr0py sl0thentr0py Oct 7, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

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.

generalized this to fallback to the global logger

Sorry, something went wrong.

Uh oh!

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

All reactions
@codecov

codecov Bot commented Oct 7, 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.27%. Comparing base (328e1d2) to head (af1f7fe).
⚠️ Report is 2 commits behind head on 6.0-dev.

Additional details and impacted files
@@           Coverage Diff            @@
##           6.0-dev    #2739   +/-   ##
========================================
  Coverage    97.27%   97.27%           
========================================
  Files          130      130           
  Lines         5216     5217    +1     
========================================
+ Hits          5074     5075    +1     
  Misses         142      142           
Components Coverage Δ
sentry-ruby 97.48% <100.00%> (+<0.01%) ⬆️
sentry-rails 96.74% <ø> (ø)
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/hub.rb 97.93% <100.00%> (ø)
sentry-ruby/lib/sentry/transaction.rb 98.74% <100.00%> (ø)
sentry-ruby/lib/sentry/utils/logging_helper.rb 100.00% <100.00%> (ø)
🚀 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 marked this pull request as ready for review October 7, 2025 14:21
@sl0thentr0py sl0thentr0py mentioned this pull request Oct 7, 2025
6.0 major #2352
Merged
cursor[bot]

This comment was marked as outdated.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@sl0thentr0py
sl0thentr0py force-pushed the neel/cleanup-hub-tx-init branch from 92a1327 to 085b075 Compare October 7, 2025 14:34
cursor[bot]

This comment was marked as outdated.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@sl0thentr0py
Remove hub from Transaction#initialize
af1f7fe
@sl0thentr0py
sl0thentr0py force-pushed the neel/cleanup-hub-tx-init branch from 085b075 to af1f7fe Compare October 7, 2025 14:46
solnic
solnic reviewed Oct 9, 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.

Left some questions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sentry-ruby/lib/sentry/utils/logging_helper.rb Resolved

Uh oh!

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

Comment thread sentry-ruby/lib/sentry/transaction.rb Resolved

Uh oh!

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

@sl0thentr0py
sl0thentr0py requested a review from solnic October 9, 2025 12:26
solnic
solnic approved these changes Oct 9, 2025
View reviewed changes
@sl0thentr0py
sl0thentr0py merged commit a484eca into 6.0-dev Oct 9, 2025
@sl0thentr0py
sl0thentr0py deleted the neel/cleanup-hub-tx-init branch October 9, 2025 13:59
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

@cursor cursor[bot] cursor[bot] left review comments
@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.