Skip to content

Upgrading sentry-sdk 0.19 to 0.20

Breaking0.19.5 → 0.20.3Breaking1New2Changed2Fixed8Other1

BreakingUpgrade verdict

1 breaking change.

  • Events now report the environment as production by default rather than deriving it from the release.
1 item needs code or config changes
Breaking1
The default environment is now production instead of being based on the release.

Generated by DepDelta from published Python source. Not mixed with prose notes.

1 default value changed. Same names, same signatures: imports and type checks still pass, but calls that leave this argument out now get the new value.
  • default changed: constructor ClientConstructor(dsn=…, with_locals=…, max_breadcrumbs=…, release=…, environment=…, server_name=…, shutdown_timeout=…, integrations=…, in_app_include=…, in_app_exclude=…, default_integrations=…, dist=…, transport=…, transport_queue_size=…, sample_rate=…, send_default_pii=…, http_proxy=…, https_proxy=…, ignore_errors=…, request_bodies=…, before_send=…, before_breadcrumb=…, debug=…, at…traces_sample_ratewas 0.0now None
  • added: method Envelope.add_sessions(sessions)
  • added: export patch_templates
  • added: function patch_templates()
  • added: class Session(object)
  • added: constructor Session(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…)
  • added: method Session.close(status=…)
  • added: method Session.get_json_attrs(with_user_info=…)
  • added: method Session.to_json()
  • added: method Session.update(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…)
  • added: property Session.truncated_started
  • removed: class Session(object)
  • removed: constructor Session(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…)
  • removed: method Session.close(status=…)
  • removed: method Session.to_json()
  • removed: method Session.update(sid=…, did=…, timestamp=…, started=…, duration=…, status=…, release=…, environment=…, user_agent=…, ip_address=…, errors=…, user=…)
  • changed: constructor SessionFlusher(flush_func, flush_interval=…) → constructor SessionFlusher(capture_func, session_mode, flush_interval=…)
  • added: function make_aggregate_envelope(aggregate_states, attrs)
  • added: method SessionFlusher.add_aggregate_session(session)
  • added: variable MAX_ENVELOPE_ITEMS
  • added: function has_tracing_enabled(options)
  • removed: function get_default_environment(release=…)