Skip to content

Version 4.2.0#1232

Merged
st0012 merged 23 commits intomasterfrom
4-2
Feb 3, 2021
Merged

Version 4.2.0#1232
st0012 merged 23 commits intomasterfrom
4-2

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@st0012 st0012 commented Jan 25, 2021

This PR contains all the changes (mostly features) for the upcoming 4.2.0 version.

* Add ThreadsInterface

* Update changelog
…lizationError (#1180)

* Turn on inspect_exception_causes_for_exclusion by default

With this config turned on, we can avoid matching the surface exceptions
in integrations, which could cause issues like #1071.

Solves #642.

* Remove ActiveJob::DeserializationError from ignored list

Since the previous commit solves #642, this commit can remove
ActiveJob::DeserializationError from the ignored exceptions list.

Solves #1071.

* Update async document

* Update changelog
…ync (#1181)

* Make sentry-rails a Rails engine too

* Add Sentry::SendEventJob

Instead of letting users defining their SentryJob class, we should
provide a default job class for them.

* Update document and example for the new job class

* Update changelog
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 25, 2021

Codecov Report

Merging #1232 (f51cffa) into master (32d0992) will increase coverage by 0.62%.
The diff coverage is 99.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1232      +/-   ##
==========================================
+ Coverage   97.96%   98.59%   +0.62%     
==========================================
  Files         196      105      -91     
  Lines        8453     4824    -3629     
==========================================
- Hits         8281     4756    -3525     
+ Misses        172       68     -104     
Impacted Files Coverage Δ
sentry-rails/app/jobs/sentry/send_event_job.rb 90.90% <90.90%> (ø)
sentry-ruby/lib/sentry/configuration.rb 97.34% <94.44%> (-0.35%) ⬇️
sentry-rails/lib/sentry/rails.rb 100.00% <100.00%> (ø)
sentry-rails/lib/sentry/rails/active_job.rb 96.15% <100.00%> (-0.52%) ⬇️
sentry-rails/lib/sentry/rails/configuration.rb 100.00% <100.00%> (ø)
sentry-rails/lib/sentry/rails/engine.rb 100.00% <100.00%> (ø)
sentry-rails/lib/sentry/rails/railtie.rb 100.00% <100.00%> (ø)
sentry-rails/spec/sentry/rails/activejob_spec.rb 98.96% <100.00%> (+0.96%) ⬆️
sentry-rails/spec/sentry/rails_spec.rb 100.00% <100.00%> (ø)
sentry-rails/spec/sentry/send_event_job_spec.rb 100.00% <100.00%> (ø)
... and 113 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 32d0992...f51cffa. Read the comment docs.

jeschneiderhan and others added 9 commits January 26, 2021 14:46
* Add configuration option for trusted proxies

* Add `trusted_proxies` configuration option to sentry-ruby
* Add existing ActionDispatch `trusted_proxies` values

* Address some PR feedback

* Isolate trusted proxy test configuration
* Add comments to explain why we reverse the forwarded_for ip list
* Call `uniq` on the trusted proxy list
* Rename `filter_local_addresses(ips) to filter_trusted_proxy_addresses(ips)

* Remove duplicated hash entry

* Update some tests after PR feedback

* retrigger checks

Co-authored-by: Stan Lo <stan001212@gmail.com>
* Allow users to configure ActiveJob adapters to ignore

* Update changelog
* Add sidekiq adapter to sentry-rails' ignored adapters list

* Update changelog
* Add queue name and jid to event tags

* Update changelog
* Refactor/test ActiveJob's context data

* Tag job_id and provider_job_id on ActiveJob events

* Update changelog
st0012 and others added 5 commits February 2, 2021 12:41
* Add ability to have many post initialization callbacks

* Revert version bumping, fix codestyle and rewrite rspec test

* Remove dependenciy bumping from sentry-sidekiq

* Add entries to CHANGELOG
* Support config.before_breadcrumb

Example:

```
config.before_breadcrumb = lambda do |breadcrumb, hint|
  breadcrumb.message = "foo"
  breadcrumb
end
```

* Update changelog
@st0012 st0012 marked this pull request as ready for review February 3, 2021 06:15
@st0012 st0012 merged commit 6146708 into master Feb 3, 2021
@st0012 st0012 deleted the 4-2 branch February 3, 2021 16:47
st0012 added a commit that referenced this pull request Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants