[ruby] 업데이트 sentry raven: 2.13.0→ 3.1.0(전문)
묘사
이 업데이트에 대해 알아야 할 모든 정보는 다음과 같습니다.이 요청을 통합하기 전에 변경된 내용과 테스트 결과를 자세히 보십시오.뭐가 바뀌었어?
✳️ 보초병 까마귀(2.13.0)→ 3.1.0)·환매·변경기록
릴리즈 노트
3.1.0
Feature
Exclude all 4xx Rails errors (#1004)
See the full list here
Add some error context in
transport_failure_callback
(#1003)Before:
config.transport_failure_callback = lambda { |event| AdminMailer.email_admins("Oh god, it's on fire!", event).deliver_later }After:
config.transport_failure_callback = lambda { |event, error| AdminMailer.email_admins("Oh god, it's on fire because #{error.message}!", event).deliver_later }Support cleaning up exception backtrace with customized backtrace_cleaner (#1011)
The new config
backtrace_cleanup_callback
takes a lambda/proc object (default isnil
) and will be called with exception's backtraceRaven.configure do |config| config.backtrace_cleanup_callback = lambda do |backtrace| Rails.backtrace_cleaner.clean(backtrace) end endAnd with the Rails integration, it'll automatically use a customized
Raven::Rails::BacktraceCleaner
to clean up exception's backtrace. It's basically Rails 6's backtrace cleaner but without silencers.The main reason to add this cleaner is to remove template methods from the trace, e.g.
app/views/welcome/view_error.html.erb in _app_views_welcome_view_error_html_erb__2807287320172182514_65600 at line 1
will become
app/views/welcome/view_error.html.erb at line 1
This can help Sentry group issues more accurately. See #957 for more information about this.
If you don't want this change, you can disable it with:
Raven.configure do |config| config.backtrace_cleanup_callback = nil endMake dsn value accessable from config (#1012)
You can now access the dsn value via
Raven.configuration.dsn
Deprecation
Deprecate dasherized filenames (#1006)
If you're using
gem 'sentry-raven', require: 'sentry-raven-without-integrations' # or require "sentry-raven-without-integrations"you will start seeing deprecation warnings. Please change them into
gem 'sentry-raven', require: 'sentry_raven_without_integrations' # or require "sentry_raven_without_integrations"Unify breadcrumb loggers activation (#1016)
Currently, we activate our breadcrumb loggers differently:
require "raven/breadcrumbs/sentry_logger" Raven.configuration.rails_activesupport_breadcrumbs = trueIt's not a nice user interface, so this PR adds a new configuration
optionbreadcrumbs_logger
to improve this:Raven.configuration.breadcrumbs_logger = :sentry_logger Raven.configuration.breadcrumbs_logger = :active_support_logger Raven.configuration.breadcrumbs_logger = [:sentry_logger, :active_support_logger]Please migrate to the new activation apporach, otherwise you'll see depraction warnings. And old ones will be dropped in version 4.0.
Refactor
- Accept non-string message in Event.from_exception (#1005)
- Refactor event initialization (#1010)
- Refactor sidekiq integration (#1019)
Fix
3.0.4
3.0.3
3.0.2
- fix: Add gem target for craft
3.0.1
3.0.0
이게 틀린 것 같나요?Please let us know.
언약
See the full diff on Github . 새로운 버전의 차이는 우리가 이곳에서 보여준 것보다 더 많다.
↗️ 패러데이(간접, 0.17.3)→ 1.0.1)·환매·변경기록
릴리즈 노트
1.0.1
Fixes:
- Use Net::HTTP#start(&block) to ensure closed TCP connections (#1117)
- Fully qualify constants to be checked (#1122)
- Allows
parse
method to be private/protected in response middleware (#1123)- Encode Spaces in Query Strings as '%20' Instead of '+' (#1125)
- Limits rack to v2.0.x (#1127)
- Adapter Registry reads also use mutex (#1136)
Documentation:
이게 틀린 것 같나요?Please let us know.
언약
See the full diff on Github . 새로운 버전의 차이는 우리가 이곳에서 보여준 것보다 더 많다.
Depfu 분기에 커밋을 추가하지 않는 한 이 PR이 충돌하지 않도록 자동으로 유지됩니다.
@depfu rebase
주석을 사용하여 수동으로 터치할 수도 있습니다.모든 Depfu 주석 명령
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)
토론 #1
는 #219로 마감했다.Reference
이 문제에 관하여([ruby] 업데이트 sentry raven: 2.13.0→ 3.1.0(전문)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/bumi/mshauri/issues/216텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)