Upgrading sentry-sdk 0.13 to 0.14
Review needed0.13.5 → 0.14.4New4Changed2Fixed8
Review neededUpgrade verdict
2 behavior changes.
In plain terms
- Performance timing now uses a clock that cannot jump backward, so span durations are more reliable.
- Error reports from AWS Lambda now include extra context such as a link to the CloudWatch logs.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function capture_event(event, hint=…) → function capture_event(event, hint=…, scope=…, **scope_args) - changed:
function capture_exception(error=…) → function capture_exception(error=…, scope=…, **scope_args) - changed:
function capture_message(message, level=…) → function capture_message(message, level=…, scope=…, **scope_args)
- added:
variable Experiments
- added:
class Envelope(object) - added:
class Item(object) - added:
class PayloadRef(object) - added:
constructor Envelope(headers=…, items=…) - added:
constructor Item(payload, headers=…, type=…, content_type=…, filename=…) - added:
constructor PayloadRef(bytes=…, path=…, json=…) - added:
function get_event_data_category(event) - added:
method Envelope.add_event(event) - added:
method Envelope.add_item(item) - added:
method Envelope.add_session(session) - added:
method Envelope.get_event() - added:
method Envelope.serialize() - added:
method Envelope.serialize_into(f) - added:
method Item.get_bytes() - added:
method Item.get_event() - added:
method Item.serialize() - added:
method Item.serialize_into(f) - added:
method PayloadRef.get_bytes() - added:
property Envelope.description - added:
property Item.data_category - added:
property PayloadRef.inferred_content_type - added:
static method Envelope.deserialize(bytes) - added:
static method Envelope.deserialize_from(f) - added:
static method Item.deserialize(bytes) - added:
static method Item.deserialize_from(f)
- changed:
method Hub.capture_event(event, hint=…) → method Hub.capture_event(event, hint=…, scope=…, **scope_args) - changed:
method Hub.capture_exception(error=…) → method Hub.capture_exception(error=…, scope=…, **scope_args) - changed:
method Hub.capture_message(message, level=…) → method Hub.capture_message(message, level=…, scope=…, **scope_args) - added:
method Hub.end_session() - added:
method Hub.resume_auto_session_tracking() - added:
method Hub.start_session() - added:
method Hub.stop_auto_session_tracking()
- changed:
function setup_integrations(integrations, with_defaults=…) → function setup_integrations(integrations, with_defaults=…, with_auto_enabling_integrations=…) - added:
class DidNotEnable(Exception)
- added:
variable TRANSACTION_STYLE_VALUES
- added:
export DidNotEnable - added:
variable TRANSACTION_STYLE_VALUES
- added:
function patch_channels_asgi_handler_impl(cls) - added:
function patch_django_asgi_handler_impl(cls)
- added:
variable TRANSACTION_STYLE_VALUES
- added:
variable TRANSACTION_STYLE_VALUES
- added:
variable TRANSACTION_STYLE_VALUES
- added:
class TrytondWSGIIntegration(sentry_sdk.integrations.Integration) - added:
constructor TrytondWSGIIntegration() - added:
field TrytondWSGIIntegration.identifier - added:
static method TrytondWSGIIntegration.setup_once()
- removed:
variable E - removed:
variable T - removed:
variable U - added:
class StartResponse(Protocol) - added:
variable WsgiExcInfo - added:
variable WsgiResponseHeaders - added:
variable WsgiResponseIter
- added:
method Scope.update_from_kwargs(user=…, level=…, extras=…, contexts=…, tags=…, fingerprint=…) - added:
method Scope.update_from_scope(scope)
- added:
class Session(object) - added:
class SessionFlusher(object) - added:
constructor Session(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…) - added:
constructor SessionFlusher(flush_func, flush_interval=…) - added:
function auto_session_tracking(hub=…) - added:
function is_auto_session_tracking_enabled(hub=…) - added:
method Session.close(status=…) - added:
method Session.to_json() - added:
method Session.update(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…) - added:
method SessionFlusher.add_session(session) - added:
method SessionFlusher.flush() - added:
method SessionFlusher.kill() - added:
variable TERMINAL_SESSION_STATES
- changed:
constructor Span(trace_id=…, span_id=…, parent_span_id=…, same_process_as_parent=…, sampled=…, transaction=…, op=…, description=…, hub=…) → constructor Span(trace_id=…, span_id=…, parent_span_id=…, same_process_as_parent=…, sampled=…, transaction=…, op=…, description=…, hub=…, status=…)
- added:
method HttpTransport.capture_envelope(envelope) - added:
method Transport.capture_envelope(envelope) - added:
variable DataCategory
- added:
function format_timestamp(value)