Skip to content

Implement proper flushing logic on close for sessions and client reports#2206

Merged
sl0thentr0py merged 1 commit intomasterfrom
neel/flush
Dec 21, 2023
Merged

Implement proper flushing logic on close for sessions and client reports#2206
sl0thentr0py merged 1 commit intomasterfrom
neel/flush

Conversation

@sl0thentr0py
Copy link
Copy Markdown
Member

closes #2193

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 20, 2023

Codecov Report

Merging #2206 (d334af5) into master (7a6cc87) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2206   +/-   ##
=======================================
  Coverage   97.36%   97.36%           
=======================================
  Files         101      101           
  Lines        3792     3798    +6     
=======================================
+ Hits         3692     3698    +6     
  Misses        100      100           
Components Coverage Δ
sentry-ruby 98.07% <100.00%> (+<0.01%) ⬆️
sentry-rails 94.98% <ø> (ø)
sentry-sidekiq 94.53% <ø> (ø)
sentry-resque 92.06% <ø> (ø)
sentry-delayed_job 94.44% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)
Files Coverage Δ
sentry-ruby/lib/sentry-ruby.rb 96.42% <100.00%> (ø)
sentry-ruby/lib/sentry/transport.rb 99.09% <100.00%> (+0.05%) ⬆️

@sl0thentr0py sl0thentr0py merged commit dd2d617 into master Dec 21, 2023
@sl0thentr0py sl0thentr0py deleted the neel/flush branch December 21, 2023 14:26
st0012 added a commit that referenced this pull request Dec 22, 2023
When reviewing #2206, I spotted 2 things that could be improved:

- When closing the SDK, we shouldn't need to enqueue the last client report
  sending to background worker again. This makes the behaviour of `close`
  more difficult to predict.
- Since the session flusher can still enqueue a job to background worker
  when flushing, we should postpone background worker's shutdown instead.
@st0012 st0012 mentioned this pull request Dec 22, 2023
st0012 added a commit that referenced this pull request Dec 22, 2023
When reviewing #2206, I spotted 2 things that could be improved:

- When closing the SDK, we shouldn't need to enqueue the last client report
  sending to background worker again. This makes the behaviour of `close`
  more difficult to predict.
- Since the session flusher can still enqueue a job to background worker
  when flushing, we should postpone background worker's shutdown instead.
jamie-o-wilkinson added a commit to govuk-forms/forms-api that referenced this pull request Jan 19, 2024
It seems as if changes introduced by getsentry/sentry-ruby#2206
were interfering with Sentry test teardown. Fortunately,
getsentry/sentry-ruby#1773 adds some test
helpers which manage Sentry test setup/teardown, which resolves this
issue.
jamie-o-wilkinson added a commit to govuk-forms/forms-admin that referenced this pull request Jan 19, 2024
It seems as if changes introduced by getsentry/sentry-ruby#2206
were interfering with Sentry test teardown. Fortunately,
getsentry/sentry-ruby#1773 adds some test
helpers which manage Sentry test setup/teardown, which resolves this
issue.
jamie-o-wilkinson added a commit to govuk-forms/forms-runner that referenced this pull request Jan 19, 2024
It seems as if changes introduced by getsentry/sentry-ruby#2206
were interfering with Sentry test teardown. Fortunately,
getsentry/sentry-ruby#1773 adds some test
helpers which manage Sentry test setup/teardown, which resolves this
issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement proper flush logic

2 participants