Skip to content

Allow passing custom scope to Hub#capture* helpers#1086

Merged
st0012 merged 1 commit intomasterfrom
custom-scope
Nov 6, 2020
Merged

Allow passing custom scope to Hub#capture* helpers#1086
st0012 merged 1 commit intomasterfrom
custom-scope

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@st0012 st0012 commented Oct 31, 2020

This PR implements and closes #1061. See sentry-ruby/spec/sentry/hub_spec.rb's #capture_* specs for examples

@st0012 st0012 added this to the 4.0.0 milestone Oct 31, 2020
@st0012 st0012 self-assigned this Oct 31, 2020
@st0012 st0012 added the wip label Oct 31, 2020
@st0012 st0012 requested a review from HazAT October 31, 2020 07:59
@st0012 st0012 force-pushed the custom-scope branch 2 times, most recently from 9d5a033 to e5bc1df Compare October 31, 2020 09:48
@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 31, 2020

Codecov Report

Merging #1086 into master will increase coverage by 0.37%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1086      +/-   ##
==========================================
+ Coverage   98.43%   98.81%   +0.37%     
==========================================
  Files          91       32      -59     
  Lines        4292     1862    -2430     
==========================================
- Hits         4225     1840    -2385     
+ Misses         67       22      -45     
Impacted Files Coverage Δ
spec/sentry/hub_spec.rb 100.00% <0.00%> (ø)
spec/raven/logger_spec.rb
spec/raven/integrations/rack_spec.rb
spec/raven/transports/stdout_spec.rb
spec/raven/client_state_spec.rb
spec/raven/integrations/sidekiq_spec.rb
spec/raven/integrations/rake_spec.rb
spec/raven/processors/http_headers_spec.rb
lib/raven/integrations/rails/backtrace_cleaner.rb
lib/raven/integrations/rack-timeout.rb
... and 50 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d2c41b...a7221a5. Read the comment docs.

Copy link
Copy Markdown
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

Also I think we can de-duplicate the tests a bit.
captureException, captureMessage and captureEvent all have the same tests with content.
Maybe we can switch it so captureException and captureMessage only test that they accept all parameter, where captureEvent really tests all the possible combinations.

@st0012 st0012 requested a review from HazAT November 5, 2020 08:31
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.

[4.0] capture* with explicit Scope

3 participants