Upgrading sentry-sdk 0.2 to 0.3
Breaking0.2.2 → 0.3.11Breaking1New5Changed3Fixed8
BreakingUpgrade verdict
1 breaking change.
In plain terms
- A configuration setting that never did anything has been removed.
Must act 1 item needs code or config changes
What you must change
Breaking1
Removes the
repos configuration option, which was never usable.reposAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
2 default values changed. Same names, same signatures: imports and type checks still pass, but calls that leave these arguments out now get the new value.
- removed:
export EventHint
- added:
function configure_debug_hub() - added:
function configure_logger()
- changed:
method Hub.push_scope() → method Hub.push_scope(callback=…) - added:
method Hub.scope(callback=…)
- added:
class AwsLambdaIntegration(Integration) - added:
field AwsLambdaIntegration.identifier - added:
method AwsLambdaIntegration.install()
- added:
constructor DjangoIntegration(transaction_style=…) - added:
export Hub - added:
export Integration - added:
export LEGACY_RESOLVER - added:
export RequestExtractor - added:
export add_breadcrumb - added:
export capture_internal_exceptions - added:
export configure_scope - added:
export event_from_exception - added:
export format_and_strip - added:
export ignore_logger - added:
export run_wsgi_app - added:
export safe_repr - added:
export transaction_from_function - added:
field DjangoIntegration.transaction_style - added:
function format_sql(sql, params) - added:
function install_sql_hook() - added:
function record_sql(sql, params)
- added:
class RavenResolver(object) - added:
function get_regex(resolver_or_pattern) - added:
function transaction_from_function(func) - added:
method RavenResolver.resolve(path, urlconf=…) - added:
variable LEGACY_RESOLVER
- removed:
function event_processor(event) - added:
constructor FlaskIntegration(transaction_style=…) - added:
field FlaskIntegration.transaction_style
- changed:
constructor SentryHandler(level, event_level) → constructor SentryHandler(level=…, event_level=…, **kwargs) - default changed:
constructor LoggingIntegration(level=…, event_level=…)event_levelwas Nonenow DEFAULT_EVENT_LEVELlevelwas logging.INFOnow DEFAULT_LEVEL - added:
variable DEFAULT_EVENT_LEVEL - added:
variable DEFAULT_LEVEL
- added:
class ModulesIntegration(Integration) - added:
field ModulesIntegration.identifier - added:
method ModulesIntegration.install()
- added:
class SanicIntegration(Integration) - added:
class SanicRequestExtractor(RequestExtractor) - added:
constructor SanicRequestExtractor(request) - added:
field SanicIntegration.identifier - added:
method SanicIntegration.install() - added:
method SanicRequestExtractor.content_length() - added:
method SanicRequestExtractor.cookies() - added:
method SanicRequestExtractor.files() - added:
method SanicRequestExtractor.form() - added:
method SanicRequestExtractor.is_json() - added:
method SanicRequestExtractor.json() - added:
method SanicRequestExtractor.raw_data() - added:
method SanicRequestExtractor.size_of_file(file) - added:
method SanicRequestExtractor.url()
- added:
method Scope.level(value)
- added:
method HttpTransport.copy() - added:
method Transport.copy()
- removed:
class EventHint(object) - removed:
constructor EventHint(exc_info=…) - removed:
function frame_from_traceback(tb, with_locals=…) - removed:
function skip_internal_frames(frame) - removed:
static method EventHint.with_exc_info(exc_info=…) - changed:
function event_from_exception(exc_info, with_locals=…, processors=…) → function event_from_exception(exc_info, client_options=…, mechanism=…) - changed:
function exceptions_from_error_tuple(exc_info, with_locals=…) → function exceptions_from_error_tuple(exc_info, client_options=…, mechanism=…) - changed:
function single_exception_from_error_tuple(exc_type, exc_value, tb, with_locals=…) → function single_exception_from_error_tuple(exc_type, exc_value, tb, client_options=…, mechanism=…) - changed:
function stacktrace_from_traceback(tb, with_locals=…) → function stacktrace_from_traceback(tb=…, with_locals=…) - changed:
function strip_string(value, assume_length=…, max_length=…) → function strip_string(value, max_length=…) - added:
function capture_internal_exceptions() - added:
function current_stacktrace(with_locals=…) - added:
function event_hint_with_exc_info(exc_info=…) - added:
function format_and_strip(template, params, strip_string=…) - added:
function get_errno(exc_value) - added:
function serialize_frame(frame, tb_lineno=…, with_locals=…) - added:
function should_hide_frame(frame)