[ruby] 업데이트 sentry raven: 2.13.0→ 3.1.0(전문)

16982 단어 mshauri

묘사

이 업데이트에 대해 알아야 할 모든 정보는 다음과 같습니다.이 요청을 통합하기 전에 변경된 내용과 테스트 결과를 자세히 보십시오.

뭐가 바뀌었어?


✳️ 보초병 까마귀(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 is nil) and will be called with exception's backtrace

    Raven.configure do |config|
      config.backtrace_cleanup_callback = lambda do |backtrace|
        Rails.backtrace_cleaner.clean(backtrace)
      end
    end

    And 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
    end
  • Make 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 = true

    It's not a nice user interface, so this PR adds a new configuration
    option breadcrumbs_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

  • Replace sys_command usages in context.rb (#1017)
  • Fix merge error from rack-timeout raven_context on old releases (#1007)
  • Return value of rescue_with_handler when intercepting ActiveJob exceptions (#1027)

3.0.4


  • fix: Don't log warning messages when it doesn't need to (#1000)
  • fix: Revert "Refactor Raven::Client class" (#1002)

3.0.3


  • fix: Ensure Processor::Cookie can run after Processor::RemoveCircularReferences (#996)
  • fix: Avoid mutating user passed in options (#994)
  • fix: Fix/Refactor Raven::Cli (#989)
  • ref: Refactor Raven::Client class (#995)
    • It adds Event#message_from_exception and Event#log_message interfaces

3.0.2


  • fix: Add gem target for craft

3.0.1


  • fix: Improve SanitizeData processor (#984)
  • fix: Masking cookies as key/pair instead of a single string (#983)
  • fix: Transports classes' requiring issue (#986)
  • fix: Frozen string issues (#977)
  • feat: Officially support Rails 6 (#982)

3.0.0


  • SDK now requires Ruby >= 2.3
  • REF: Retain any literal "HTTP-" in header names [@elliterate, #950]
  • REF: Delete JSON spec for recursive hashes [@ksylvest, #952]
  • FEAT: Bump faraday version to latest [@ksylvest, #946]

이게 틀린 것 같나요?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:

  • Retry middleware documentation fix (#1109)
  • Docs(retry): precise usage of retry-after (#1111)
  • README: Link the logo to the website (#1112)
  • Website: add search bar (#1116)
  • Fix request/response mix-up in docs text (#1132)

이게 틀린 것 같나요?Please let us know.
언약
See the full diff on Github . 새로운 버전의 차이는 우리가 이곳에서 보여준 것보다 더 많다.
Depfu Status
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로 마감했다.

좋은 웹페이지 즐겨찾기