Skip to content

Make sentry-rails a Rails engine and provide default job class for async#1181

Merged
st0012 merged 4 commits into4-2from
rails-engine
Jan 15, 2021
Merged

Make sentry-rails a Rails engine and provide default job class for async#1181
st0012 merged 4 commits into4-2from
rails-engine

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@st0012 st0012 commented Jan 3, 2021

No description provided.

@st0012 st0012 added this to the 4.2.0 milestone Jan 3, 2021
@st0012 st0012 self-assigned this Jan 3, 2021
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 3, 2021

Codecov Report

❌ Patch coverage is 94.23077% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (4-2@200f3d8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
sentry-rails/spec/sentry/rails/activejob_spec.rb 87.50% 2 Missing ⚠️
sentry-rails/app/jobs/sentry/send_event_job.rb 90.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             4-2    #1181   +/-   ##
======================================
  Coverage       ?   98.49%           
======================================
  Files          ?      102           
  Lines          ?     4523           
  Branches       ?        0           
======================================
  Hits           ?     4455           
  Misses         ?       68           
  Partials       ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@st0012 st0012 force-pushed the inspect-exception-cause-by-default branch from 821cbb5 to 58f9c29 Compare January 3, 2021 13:19
@st0012 st0012 force-pushed the inspect-exception-cause-by-default branch from 58f9c29 to 7b1f3e3 Compare January 11, 2021 08:22
@st0012 st0012 force-pushed the inspect-exception-cause-by-default branch 2 times, most recently from 8584e22 to 0baafaf Compare January 15, 2021 11:35
Base automatically changed from inspect-exception-cause-by-default to 4-2 January 15, 2021 11:45
Instead of letting users defining their SentryJob class, we should
provide a default job class for them.
@st0012 st0012 merged commit 67826d1 into 4-2 Jan 15, 2021
@st0012 st0012 deleted the rails-engine branch January 15, 2021 13:55
st0012 added a commit that referenced this pull request Jan 17, 2021
…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
st0012 added a commit that referenced this pull request Feb 3, 2021
* Add ThreadsInterface (#1178)

* Add ThreadsInterface

* Update changelog

* Inspect exception cause by default & don't exclude ActiveJob::DeserializationError  (#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

* Make sentry-rails a Rails engine and provide default job class for async (#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

* Add configuration option for trusted proxies (#1126)

* 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>

* Only define SendEventJob when ActiveJob is defined

* Allow users to configure ActiveJob adapters to ignore (#1256)

* Allow users to configure ActiveJob adapters to ignore

* Update changelog

* Add sidekiq adapter to sentry-rails' ignored adapters list (#1257)

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

* Update changelog

* Tag queue name and jid on sidekiq events (#1258)

* Add queue name and jid to event tags

* Update changelog

* Tag job_id and provider_job_id on ActiveJob events (#1259)

* Refactor/test ActiveJob's context data

* Tag job_id and provider_job_id on ActiveJob events

* Update changelog

* Add ability to have many post initialization callbacks (#1261)

* 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 (#1253)

* Support config.before_breadcrumb

Example:

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

* Update changelog

* Update sentry-ruby's changelog

* Update sentry-rails' changelog

* Update sentry-sidekiq's changelog

* Rename ignored_active_job_adapters to skippable_job_adapters (#1264)

* Update sentry-ruby's changelog

Co-authored-by: Jon-Erik Schneiderhan <45184220+jeschneiderhan@users.noreply.github.com>
Co-authored-by: Valentine Kiselev <mrexox@outlook.com>
st0012 added a commit that referenced this pull request Feb 3, 2021
…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
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.

2 participants