sentry-sdk breaking changes
Updated December 4, 2026
On this page
Latest version 3.0.2, released November 30, 2026. Source repository
Its 3.0.0 release requires Python 3.7 or later. Python end of life dates.
- From 2.76.0 to 3.0.0: 590 breaking changes in 3 versions.
- From 0.20.0 to 3.0.0: 1,592 breaking changes in 88 versions.
sentry-sdk 3.0.0 breaking changes
- Removed
Users on Python 3.6 must stay on the 2.x SDK line. docs.sentry.io - Removed
Most integration extras such as sentry-sdk[django] and sentry-sdk[fastapi] were removed; install the base sentry-sdk package instead. docs.sentry.io - Removed
The opentelemetry extra was removed along with the SentrySpanProcessor and SentryPropagator. docs.sentry.io - Removed
Set span data with span.set_attribute(key, value); data, tags and similar are gone. docs.sentry.io - Removed
Older Django, Flask, FastAPI, Starlette, Celery and SQLAlchemy versions are no longer supported. Check the detailed guide for the minimum versions. docs.sentry.io - Removed
_experiments
Set before_send_log, before_send_metric, before_send_span, ignore_spans and data_collection as top-level init options. docs.sentry.io - Removed
@ai_track
Remove uses of the decorator. docs.sentry.io - Removed
add_attachment
Remove the argument from add_attachment calls. docs.sentry.io - Removed
ai_track
The @ai_track decorator was removed. docs.sentry.io - Removed
before_send_transaction
Filter spans with ignore_spans or before_send_span instead. docs.sentry.io - Removed
capture_sentry_logs
The capture_sentry_logs option was removed. Set level=None to disable sending Sentry logs. docs.sentry.io - Removed
configure_scope
Use sentry_sdk.get_current_scope() and modify the scope directly. docs.sentry.io - Removed
continuous_profiling_mode
The experimental continuous_profiling_mode option was removed. Use the top-level profiler_mode option. docs.sentry.io - Removed
enable_logs
Sentry logs now work without extra configuration; remove the option. docs.sentry.io - Removed
enable_metrics
Remove the option from init calls. docs.sentry.io - Removed
enable_tracing
Set traces_sample_rate instead of enable_tracing. docs.sentry.io - Removed
event_scrubber
Use data_collection to control collected data and before_send for custom scrubbing. docs.sentry.io - Removed
include_local_variables
Use data_collection's stack_frame_variables setting instead. docs.sentry.io - Removed
include_prompts
Use data_collection's gen_ai setting instead. docs.sentry.io - Removed
include_source_context
Use data_collection's frame_context_lines setting instead. docs.sentry.io - Removed
instrumenter
The instrumenter option was removed. Use the OTLPIntegration instead. docs.sentry.io - Removed
profiles_sample_rate
Use continuous profiling with profile_session_sample_rate instead. docs.sentry.io - Removed
propagate_traces
Use trace_propagation_targets to control which outgoing requests get trace headers. docs.sentry.io - Removed
push_scope
Use sentry_sdk.new_scope() instead. docs.sentry.io - Removed
record_params
Use data_collection's database_query_data setting instead. docs.sentry.io - Removed
record_sql_params
Use data_collection's database_query_data setting instead. docs.sentry.io - Removed
record_token_usage
Remove calls to this function. docs.sentry.io - Removed
scope.level
Use sentry_sdk.set_level() instead. docs.sentry.io - Removed
scope.user
Use sentry_sdk.set_user() instead. docs.sentry.io - Removed
send_default_pii
Remove the option; use the data_collection option to choose collected data. docs.sentry.io - Removed
sentry_sdk.ai.monitoring
sentry_sdk.ai.monitoring was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.BLOB_DATA_SUBSTITUTE
sentry_sdk.ai.utils.BLOB_DATA_SUBSTITUTE was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.DATA_URL_BASE64_REGEX
sentry_sdk.ai.utils.DATA_URL_BASE64_REGEX was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.get_start_span_function
sentry_sdk.ai.utils.get_start_span_function was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.MAX_GEN_AI_MESSAGE_BYTES
sentry_sdk.ai.utils.MAX_GEN_AI_MESSAGE_BYTES was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.MAX_SINGLE_MESSAGE_CONTENT_CHARS
sentry_sdk.ai.utils.MAX_SINGLE_MESSAGE_CONTENT_CHARS was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.redact_blob_message_parts
sentry_sdk.ai.utils.redact_blob_message_parts was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.transform_message_content
sentry_sdk.ai.utils.transform_message_content was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.truncate_and_annotate_embedding_inputs
sentry_sdk.ai.utils.truncate_and_annotate_embedding_inputs was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.truncate_and_annotate_messages
sentry_sdk.ai.utils.truncate_and_annotate_messages was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.ai.utils.truncate_messages_by_size
sentry_sdk.ai.utils.truncate_messages_by_size was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.api.configure_scope
sentry_sdk.api.configure_scope was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.api.push_scope
sentry_sdk.api.push_scope was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.api.set_measurement
sentry_sdk.api.set_measurement was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.api.start_transaction
sentry_sdk.api.start_transaction was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.api.update_current_span
sentry_sdk.api.update_current_span was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.attachments.Attachment.add_to_transactions
Attachment.add_to_transactions was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.attachments.Item.get_transaction_event
Item.get_transaction_event was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.client.AnnotatedValue.substituted_because_contains_sensitive_data
AnnotatedValue.substituted_because_contains_sensitive_data was removed in sentry-sdk 3.0.0 pypi.org - Removed
sentry_sdk.client.BaseClient.should_send_default_pii
BaseClient.should_send_default_pii was removed in sentry-sdk 3.0.0 pypi.org
And 535 more in this version. Sign up to see every change
sentry-sdk 3.0.0a7 breaking changes
- Removed
There will be no stable 3.0 release. Users on a 3.0 alpha should switch back to 2.x to keep getting features and fixes. github.com
sentry-sdk 3.0.0a4 breaking changes
- Removed
The experimental logs options were dropped in 3.0. Use the top-level enable_logs and before_send_log options instead. github.com - Removed
MAX_EVENT_BYTES
The MAX_EVENT_BYTES constant was removed. Code that imports or references it will fail. github.com - Behavior changed
Span data values are now always primitive types. Code that stored non-primitive values in span data may see different results. github.com - Default changed
DEFAULT_MAX_VALUE_LENGTH
The default DEFAULT_MAX_VALUE_LENGTH was considerably raised, so captured values can be longer than before. github.com
sentry-sdk 2.76.0 breaking changes
- Signature changed
sentry_sdk.integrations.beam.raise_exception
Was def raise_exception() -> None; now def raise_exception() -> NoReturn. pypi.org
sentry-sdk 2.75.0 breaking changes
- Removed
sentry_sdk.profiler.continuous_profiler.ContinuousScheduler.pause
ContinuousScheduler.pause was removed in sentry-sdk 2.75.0 pypi.org - Removed
sentry_sdk.profiler.continuous_profiler.GeventContinuousScheduler.pause
GeventContinuousScheduler.pause was removed in sentry-sdk 2.75.0 pypi.org - Signature changed
sentry_sdk.integrations.anthropic.ReasoningPart.content
Was content: str; now content: NotRequired[str]. pypi.org - Signature changed
sentry_sdk.integrations.anthropic.TextPart.content
Was content: str; now content: NotRequired[str]. pypi.org - Signature changed
sentry_sdk.integrations.mistral.InputMessage.parts
Was parts: list[Union[TextPart, ReasoningPart, ToolCallPart]]; now parts: list[Union[TextPart, ReasoningPart, ToolCallPart, ToolCallResponsePart, UriPart, BlobPart]]. pypi.org
sentry-sdk 2.74.0 breaking changes
- Removed
sentry_sdk.sessions.TERMINAL_SESSION_STATES
sentry_sdk.sessions.TERMINAL_SESSION_STATES was removed in sentry-sdk 2.74.0 pypi.org - Removed
sentry_sdk.tracing_utils.base64_stripped
sentry_sdk.tracing_utils.base64_stripped was removed in sentry-sdk 2.74.0 pypi.org - Removed
sentry_sdk.utils.epoch
sentry_sdk.utils.epoch was removed in sentry-sdk 2.74.0 pypi.org - Removed
sentry_sdk.utils.to_timestamp
sentry_sdk.utils.to_timestamp was removed in sentry-sdk 2.74.0 pypi.org - Behavior changed
baggage
Baggage serialization no longer emits a trailing comma when there are no third-party items. github.com - Behavior changed
sampling
Incoming sample rates are now respected if not explicitly overridden, which can change which transactions are sampled. github.com - Behavior changed
server.address
The WSGI integration stops overwriting the server.address span attribute, so existing values set by users are preserved. github.com - Signature changed
sentry_sdk.integrations.typesafe.ChoiceModel.criteria
Was criteria: NotRequired[Mapping[str, JSONContent | None]]; now criteria: NotRequired[Mapping[str, Content | None]]. pypi.org - Signature changed
sentry_sdk.integrations.typesafe.ChoiceModel.instructions
Was instructions: NotRequired[JSONContent | None]; now instructions: NotRequired[Content | None]. pypi.org - Signature changed
sentry_sdk.integrations.typesafe.InputMessageModel.state
Was state: NotRequired[JSONContent]; now state: NotRequired[Content]. pypi.org
And 3 more in this version. Sign up to see every change
Older versions
83 older versions, each with its first changes. Sign up to see every change
Show 83 older versions
sentry-sdk 2.73.0 breaking changes
- Removed
sentry_sdk.integrations.celery.utils.MonitorConfigScheduleUnit
sentry_sdk.integrations.celery.utils.MonitorConfigScheduleUnit was removed in sentry-sdk 2.73.0 pypi.org - Removed
sentry_sdk.integrations.trytond.TrytondWSGIIntegration.__init__
TrytondWSGIIntegration() was removed in sentry-sdk 2.73.0 pypi.org
And 1 more in this version.
sentry-sdk 2.72.0 breaking changes
- Removed
sentry_sdk.integrations.anthropic.record_token_usage
The ai.monitoring.record_token_usage() function is deprecated. Stop calling it in new code. pypi.org - Removed
sentry_sdk.integrations.boto3.add_http_breadcrumb
sentry_sdk.integrations.boto3.add_http_breadcrumb was removed in sentry-sdk 2.72.0 pypi.org
And 19 more in this version.
sentry-sdk 2.70.0 breaking changes
- Renamed
_experiments.data_collection
The data_collection option is promoted from the experimental _experiments options to a top-level sentry_sdk.init option. Code that passes it under _experiments should pass it as a top-level argument instead. github.com - Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn: Optional[str] = None, *, max_breadcrumbs: int = DEFAULT_MAX_BREADCRUMBS, release: Optional[str] = None, environment: Optional[str] = None, server_name: Optional[str] = None, shutdown_timeout: float = 2... pypi.org
And 1 more in this version.
sentry-sdk 2.69.2 breaking changes
- Removed
sentry_sdk.client.trace
sentry_sdk.client.trace was removed in sentry-sdk 2.69.2 pypi.org - Removed
sentry_sdk.utils.BASE64_ALPHABET
sentry_sdk.utils.BASE64_ALPHABET was removed in sentry-sdk 2.69.2 pypi.org
And 4 more in this version.
sentry-sdk 2.69.1 breaking changes
- Removed
sentry_sdk.integrations.stdlib.BAGGAGE_HEADER_NAME
sentry_sdk.integrations.stdlib.BAGGAGE_HEADER_NAME was removed in sentry-sdk 2.69.1 pypi.org
sentry-sdk 2.69.0 breaking changes
- Removed
sentry_sdk.integrations.aiohttp.SEGMENT_SOURCE_FOR_STYLE
sentry_sdk.integrations.aiohttp.SEGMENT_SOURCE_FOR_STYLE was removed in sentry-sdk 2.69.0 pypi.org - Removed
sentry_sdk.integrations.boto3.should_send_default_pii
sentry_sdk.integrations.boto3.should_send_default_pii was removed in sentry-sdk 2.69.0 pypi.org
And 11 more in this version.
sentry-sdk 2.68.1 breaking changes
- Signature changed
sentry_sdk.integrations.django.DjangoIntegration.__init__
Was def __init__(self, transaction_style: str = 'url', middleware_spans: bool = False, signals_spans: bool = True, cache_spans: bool = False, db_transaction_spans: bool = False, signals_denylist: Optional[list[signals.Signal]] = None... pypi.org - Signature changed
sentry_sdk.integrations.logging.LoggingIntegration.__init__
Was def __init__(self, level: Optional[int] = DEFAULT_LEVEL, event_level: Optional[int] = DEFAULT_EVENT_LEVEL, sentry_logs_level: Optional[int] = DEFAULT_LEVEL, capture_sentry_logs: Optional[bool] = False) -> None; now def __init__(self... pypi.org
And 3 more in this version.
sentry-sdk 2.68.0 breaking changes
- Removed
sentry_sdk.client.has_logs_enabled
sentry_sdk.client.has_logs_enabled was removed in sentry-sdk 2.68.0 pypi.org - Removed
sentry_sdk.client.has_metrics_enabled
sentry_sdk.client.has_metrics_enabled was removed in sentry-sdk 2.68.0 pypi.org
And 14 more in this version.
sentry-sdk 2.67.0 breaking changes
- Removed
sentry_sdk.client.module_not_found_error
sentry_sdk.client.module_not_found_error was removed in sentry-sdk 2.67.0 pypi.org - Removed
sentry_sdk.consts.DataCollectionUserOptions.query_params
DataCollectionUserOptions.query_params was removed in sentry-sdk 2.67.0 pypi.org
And 17 more in this version.
sentry-sdk 2.66.1 breaking changes
- Renamed
sentry_sdk.integrations.aiohttp.SegmentSource
Use sentry_sdk.integrations.aiohttp.SegmentNameSource instead. pypi.org - Renamed
sentry_sdk.integrations.arq.SegmentSource
Use sentry_sdk.integrations.arq.SegmentNameSource instead. pypi.org
And 14 more in this version.
sentry-sdk 2.66.0 breaking changes
- Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn: Optional[str] = None, *, max_breadcrumbs: int = DEFAULT_MAX_BREADCRUMBS, release: Optional[str] = None, environment: Optional[str] = None, server_name: Optional[str] = None, shutdown_timeout: float = 2... pypi.org - Signature changed
sentry_sdk.consts.ClientConstructor.__init__
Was def __init__(self, dsn: Optional[str] = None, *, max_breadcrumbs: int = DEFAULT_MAX_BREADCRUMBS, release: Optional[str] = None, environment: Optional[str] = None, server_name: Optional[str] = None, shutdown_timeout: float = 2... pypi.org
sentry-sdk 2.65.0 breaking changes
- Signature changed
sentry_sdk.integrations.fastapi.StarletteRequestExtractor.request
Was request: Request; now request. pypi.org - Signature changed
sentry_sdk.integrations.starlette.StarletteRequestExtractor.request
Was request: Request; now request. pypi.org
And 2 more in this version.
sentry-sdk 2.64.0 breaking changes
- Behavior changed
url.full, url.path and url.query span attributes are only sent when send_default_pii is enabled. github.com - Behavior changed
url.full, url.query and url.fragment span attributes are only sent when send_default_pii is enabled. github.com
And 16 more in this version.
sentry-sdk 2.63.0 breaking changes
- Removed
sentry_sdk.ai.utils.has_span_streaming_enabled
sentry_sdk.ai.utils.has_span_streaming_enabled was removed in sentry-sdk 2.63.0 pypi.org - Removed
sentry_sdk.integrations.clickhouse_driver.ensure_integration_enabled
sentry_sdk.integrations.clickhouse_driver.ensure_integration_enabled was removed in sentry-sdk 2.63.0 pypi.org
And 17 more in this version.
sentry-sdk 2.62.0 breaking changes
- Removed
The minimum supported aiomysql version is raised, so older aiomysql versions are no longer supported. Upgrade aiomysql if you use an older one. github.com - Removed
sentry_sdk.integrations.bottle.SOURCE_FOR_STYLE
sentry_sdk.integrations.bottle.SOURCE_FOR_STYLE was removed in sentry-sdk 2.62.0 pypi.org
And 2 more in this version.
sentry-sdk 2.61.1 breaking changes
- Signature changed
sentry_sdk.integrations.rust_tracing.RustTracingLayer.on_new_span
Was def on_new_span(self, attrs: str, span_id: str) -> Optional[SentrySpan]; now def on_new_span(self, attrs: str, span_id: str) -> Optional[Union[SentrySpan, StreamedSpan]]. pypi.org - Signature changed
sentry_sdk.integrations.rust_tracing.RustTracingLayer.on_record
Was def on_record(self, span_id: str, values: str, sentry_span: SentrySpan) -> None; now def on_record(self, span_id: str, values: str, sentry_span: Union[SentrySpan, StreamedSpan]) -> None. pypi.org
sentry-sdk 2.61.0 breaking changes
- Removed
sentry_sdk.integrations.cohere.set_span_errored
sentry_sdk.integrations.cohere.set_span_errored was removed in sentry-sdk 2.61.0 pypi.org - Removed
sentry_sdk.integrations.langchain.set_ai_pipeline_name
sentry_sdk.integrations.langchain.set_ai_pipeline_name was removed in sentry-sdk 2.61.0 pypi.org
And 45 more in this version.
sentry-sdk 2.60.0 breaking changes
- Removed
sentry_sdk.client.StreamedSpan.timestamp
StreamedSpan.timestamp was removed in sentry-sdk 2.60.0 pypi.org - Removed
sentry_sdk.integrations.asyncpg.ensure_integration_enabled
sentry_sdk.integrations.asyncpg.ensure_integration_enabled was removed in sentry-sdk 2.60.0 pypi.org
And 10 more in this version.
sentry-sdk 2.59.0 breaking changes
- Removed
sentry_sdk.integrations.celery.ensure_integration_enabled
sentry_sdk.integrations.celery.ensure_integration_enabled was removed in sentry-sdk 2.59.0 pypi.org - Removed
sentry_sdk.integrations.celery.utils.NoOpMgr
sentry_sdk.integrations.celery.utils.NoOpMgr was removed in sentry-sdk 2.59.0 pypi.org
And 20 more in this version.
sentry-sdk 2.58.0 breaking changes
- Removed
sentry_sdk.client.SPANDATA.GEN_AI_TOOL_TYPE
sentry_sdk.client.SPANDATA.GEN_AI_TOOL_TYPE was removed in sentry-sdk 2.58.0 pypi.org - Removed
sentry_sdk.consts.SPANDATA.GEN_AI_TOOL_TYPE
sentry_sdk.consts.SPANDATA.GEN_AI_TOOL_TYPE was removed in sentry-sdk 2.58.0 pypi.org
And 8 more in this version.
sentry-sdk 2.57.0 breaking changes
- Removed
sentry_sdk.client.BaseHttpTransport.hub_cls
BaseHttpTransport.hub_cls was removed in sentry-sdk 2.57.0 pypi.org - Removed
sentry_sdk.consts.OP.GEN_AI_GENERATE_TEXT
sentry_sdk.consts.OP.GEN_AI_GENERATE_TEXT was removed in sentry-sdk 2.57.0 pypi.org
And 12 more in this version.
sentry-sdk 2.55.0 breaking changes
- Removed
sentry_sdk.client.is_gevent
sentry_sdk.client.is_gevent was removed in sentry-sdk 2.55.0 pypi.org - Removed
sentry_sdk.client.PY37
sentry_sdk.client.PY37 was removed in sentry-sdk 2.55.0 pypi.org
And 49 more in this version.
sentry-sdk 2.54.0 breaking changes
- Signature changed
sentry_sdk.integrations.bottle.SentryWsgiMiddleware.__call__
Was def __call__(self, environ: Dict[str, str], start_response: Callable[..., Any]) -> _ScopedResponse; now def __call__(self, environ: Dict[str, str], start_response: Callable[..., Any]) -> Any. pypi.org - Signature changed
sentry_sdk.integrations.wsgi.SentryWsgiMiddleware.__call__
Was def __call__(self, environ: Dict[str, str], start_response: Callable[..., Any]) -> _ScopedResponse; now def __call__(self, environ: Dict[str, str], start_response: Callable[..., Any]) -> Any. pypi.org
sentry-sdk 2.53.0 breaking changes
- Removed
sentry_sdk.client.StreamedSpan.name
StreamedSpan.name was removed in sentry-sdk 2.53.0 pypi.org - Removed
sentry_sdk.traces.StreamedSpan.name
StreamedSpan.name was removed in sentry-sdk 2.53.0 pypi.org
sentry-sdk 2.52.0 breaking changes
- Removed
sentry_sdk.client.SPANDATA.META_GEN_AI_ORIGINAL_INPUT_MESSAGES_LENGTH
sentry_sdk.client.SPANDATA.META_GEN_AI_ORIGINAL_INPUT_MESSAGES_LENGTH was removed in sentry-sdk 2.52.0 pypi.org - Removed
sentry_sdk.consts.SPANDATA.META_GEN_AI_ORIGINAL_INPUT_MESSAGES_LENGTH
sentry_sdk.consts.SPANDATA.META_GEN_AI_ORIGINAL_INPUT_MESSAGES_LENGTH was removed in sentry-sdk 2.52.0 pypi.org
And 6 more in this version.
sentry-sdk 2.51.0 breaking changes
- Signature changed
sentry_sdk.ai.utils.truncate_and_annotate_messages
Was def truncate_and_annotate_messages(messages: Optional[List[Dict[str, Any]]], span: Any, scope: Any, max_bytes: int = MAX_GEN_AI_MESSAGE_BYTES) -> Optional[List[Dict[str, Any]]]; now def truncate_and_annotate_messages(messages... pypi.org - Signature changed
sentry_sdk.integrations.anthropic.truncate_and_annotate_messages
Was def truncate_and_annotate_messages(messages: Optional[List[Dict[str, Any]]], span: Any, scope: Any, max_bytes: int = MAX_GEN_AI_MESSAGE_BYTES) -> Optional[List[Dict[str, Any]]]; now def truncate_and_annotate_messages(messages... pypi.org
And 2 more in this version.
sentry-sdk 2.50.0 breaking changes
- Signature changed
sentry_sdk.ai.monitoring.record_token_usage
Was def record_token_usage(span: Span, input_tokens: Optional[int] = None, input_tokens_cached: Optional[int] = None, output_tokens: Optional[int] = None, output_tokens_reasoning: Optional[int] = None, total_tokens: Optional[int] = None)... pypi.org - Signature changed
sentry_sdk.integrations.anthropic.record_token_usage
Was def record_token_usage(span: Span, input_tokens: Optional[int] = None, input_tokens_cached: Optional[int] = None, output_tokens: Optional[int] = None, output_tokens_reasoning: Optional[int] = None, total_tokens: Optional[int] = None)... pypi.org
sentry-sdk 2.49.0 breaking changes
- Removed
sentry_sdk.client.LogBatcher.MAX_LOGS_BEFORE_DROP
sentry_sdk.client.LogBatcher.MAX_LOGS_BEFORE_DROP was removed in sentry-sdk 2.49.0 pypi.org - Removed
sentry_sdk.client.LogBatcher.MAX_LOGS_BEFORE_FLUSH
sentry_sdk.client.LogBatcher.MAX_LOGS_BEFORE_FLUSH was removed in sentry-sdk 2.49.0 pypi.org
And 9 more in this version.
sentry-sdk 2.48.0 breaking changes
- Default changed
middleware_spans
Middleware spans no longer appear by default in these integrations. To keep them, set the middleware_spans integration option to True, for example DjangoIntegration(middleware_spans=True). github.com - Signature changed
sentry_sdk.ai.utils.truncate_messages_by_size
Was def truncate_messages_by_size(messages, max_bytes=MAX_GEN_AI_MESSAGE_BYTES); now def truncate_messages_by_size(messages: List[Dict[str, Any]], max_bytes: int = MAX_GEN_AI_MESSAGE_BYTES, max_single_message_chars: int =... pypi.org
And 9 more in this version.
sentry-sdk 2.47.0 breaking changes
- Removed
sentry_sdk.client.SpotlightClient.fails
SpotlightClient.fails was removed in sentry-sdk 2.47.0 pypi.org - Removed
sentry_sdk.consts.SPANSTATUS.ERROR
sentry_sdk.consts.SPANSTATUS.ERROR was removed in sentry-sdk 2.47.0 pypi.org
And 21 more in this version.
sentry-sdk 2.46.0 breaking changes
- Behavior changed
The OpenAI agents integration was being enabled unintentionally and now is not. Code that relied on it being active automatically must enable it explicitly. github.com
sentry-sdk 2.45.0 breaking changes
- Behavior changed
These integrations are now enabled automatically, so their instrumentation runs without explicit setup. Code using them may see new telemetry. github.com - Signature changed
sentry_sdk.integrations.langchain.LangchainIntegration.__init__
Was def __init__(self, include_prompts=True, max_spans=1024); now def __init__(self, include_prompts=True, max_spans=None). pypi.org
And 2 more in this version.
sentry-sdk 2.44.0 breaking changes
- Removed
sentry_sdk.integrations.pydantic_ai.utils.set_data_normalized
sentry_sdk.integrations.pydantic_ai.utils.set_data_normalized was removed in sentry-sdk 2.44.0 pypi.org - Renamed
sentry_sdk.integrations.pydantic_ai.patches.agent_run.event_from_exception
Use sentry_sdk.integrations.pydantic_ai.utils.event_from_exception instead. pypi.org
And 7 more in this version.
sentry-sdk 2.43.0 breaking changes
- Behavior changed
StrawberryIntegration
StrawberryIntegration no longer guesses whether to use sync or async execution and now enables the sync version by default. To keep the async version, pass async_execution=True explicitly. github.com - Default changed
Code origin tracking for HTTP requests is turned on by default in this release. Users who do not want it must disable it explicitly. github.com
And 2 more in this version.
sentry-sdk 2.42.1 breaking changes
- Signature changed
sentry_sdk.integrations.aws_lambda.TimeoutThread.__init__
Was def __init__(self, waiting_time, configured_timeout); now def __init__(self, waiting_time, configured_timeout, isolation_scope=None, current_scope=None). pypi.org - Signature changed
sentry_sdk.utils.TimeoutThread.__init__
Was def __init__(self, waiting_time, configured_timeout); now def __init__(self, waiting_time, configured_timeout, isolation_scope=None, current_scope=None). pypi.org
sentry-sdk 2.42.0 breaking changes
- Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org - Signature changed
sentry_sdk.consts.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org
sentry-sdk 2.41.0 breaking changes
- Removed
sentry_sdk.client.BaseClient.metrics_aggregator
BaseClient.metrics_aggregator was removed in sentry-sdk 2.41.0 pypi.org - Removed
sentry_sdk.Client.metrics_aggregator
Client.metrics_aggregator was removed in sentry-sdk 2.41.0 pypi.org
And 6 more in this version.
sentry-sdk 2.40.0 breaking changes
- Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org - Signature changed
sentry_sdk.consts.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org
sentry-sdk 2.39.0 breaking changes
- Behavior changed
Tool call output is no longer recorded unless include_prompt or should_send_default_pii is enabled. github.com - Behavior changed
Exceptions raised in user code are now propagated rather than swallowed by the OpenAI integration. github.com
And 1 more in this version.
sentry-sdk 2.38.0 breaking changes
- Removed
sentry_sdk.integrations.huggingface_hub.consts
sentry_sdk.integrations.huggingface_hub.consts was removed in sentry-sdk 2.38.0 pypi.org - Signature changed
sentry_sdk.integrations.openai_agents.spans.invoke_agent_span
Was def invoke_agent_span(context, agent); now def invoke_agent_span(context, agent, kwargs). pypi.org
And 1 more in this version.
sentry-sdk 2.35.0 breaking changes
- Removed
sentry_sdk.consts.OP.LANGCHAIN_AGENT
sentry_sdk.consts.OP.LANGCHAIN_AGENT was removed in sentry-sdk 2.35.0 pypi.org - Removed
sentry_sdk.consts.OP.LANGCHAIN_CHAT_COMPLETIONS_CREATE
sentry_sdk.consts.OP.LANGCHAIN_CHAT_COMPLETIONS_CREATE was removed in sentry-sdk 2.35.0 pypi.org
And 34 more in this version.
sentry-sdk 2.34.0 breaking changes
- Removed
sentry_sdk.consts.OP.OPENAI_CHAT_COMPLETIONS_CREATE
sentry_sdk.consts.OP.OPENAI_CHAT_COMPLETIONS_CREATE was removed in sentry-sdk 2.34.0 pypi.org - Removed
sentry_sdk.consts.OP.OPENAI_EMBEDDINGS_CREATE
sentry_sdk.consts.OP.OPENAI_EMBEDDINGS_CREATE was removed in sentry-sdk 2.34.0 pypi.org
And 3 more in this version.
sentry-sdk 2.33.2 breaking changes
- Removed
sentry_sdk.client.setup_spotlight
sentry_sdk.client.setup_spotlight was removed in sentry-sdk 2.33.2 pypi.org - Removed
sentry_sdk.integrations.gnu_backtrace.HEXVAL_RE
sentry_sdk.integrations.gnu_backtrace.HEXVAL_RE was removed in sentry-sdk 2.33.2 pypi.org
And 2 more in this version.
sentry-sdk 2.33.1 breaking changes
- Removed
sentry_sdk.client.Monitor.__del__
Monitor.__del__ was removed in sentry-sdk 2.33.1 pypi.org - Removed
sentry_sdk.client.SessionFlusher.__del__
SessionFlusher.__del__ was removed in sentry-sdk 2.33.1 pypi.org
And 6 more in this version.
sentry-sdk 2.32.0 breaking changes
- Behavior changed
Exceptions raised in Litestar middleware are now checked against failed_request_status_codes, so the set of errors reported may change. Review your status code configuration if you rely on middleware errors being captured. github.com
sentry-sdk 2.30.0 breaking changes
- Removed
sentry_sdk.logger.get_current_scope
sentry_sdk.logger.get_current_scope was removed in sentry-sdk 2.30.0 pypi.org - Signature changed
sentry_sdk.integrations.loguru.LoguruIntegration.__init__
Was def __init__(self, level=DEFAULT_LEVEL, event_level=DEFAULT_EVENT_LEVEL, breadcrumb_format=DEFAULT_FORMAT, event_format=DEFAULT_FORMAT); now def __init__(self, level=DEFAULT_LEVEL, event_level=DEFAULT_EVENT_LEVEL... pypi.org
sentry-sdk 2.29.1 breaking changes
- Behavior changed
The log severity_text for warning-level logs is now sent as "warn" instead of "warning". Users who filter or match on the old value must update that. github.com
sentry-sdk 2.29.0 breaking changes
- Behavior changed
sentry.message.parameters
The log attribute sentry.message.parameters is now emitted under a singular name to match the spec. Update any queries or dashboards that rely on the old attribute name. github.com - Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org
And 1 more in this version.
sentry-sdk 2.28.0 breaking changes
- Removed
sentry_sdk.client.Envelope.add_log
Envelope.add_log was removed in sentry-sdk 2.28.0 pypi.org - Removed
sentry_sdk.envelope.Envelope.add_log
Envelope.add_log was removed in sentry-sdk 2.28.0 pypi.org
sentry-sdk 2.27.0 breaking changes
- Removed
sentry_sdk.integrations.launchdarkly.sentry_sdk
sentry_sdk.integrations.launchdarkly.sentry_sdk was removed in sentry-sdk 2.27.0 pypi.org
sentry-sdk 2.25.1 breaking changes
- Removed
sentry_sdk._experimental_logger
sentry_sdk._experimental_logger was removed in sentry-sdk 2.25.1 pypi.org - Removed
sentry_sdk.client.SpotlightClient.tries
SpotlightClient.tries was removed in sentry-sdk 2.25.1 pypi.org
And 1 more in this version.
sentry-sdk 2.25.0 breaking changes
- Removed
sentry_sdk.client.BaseClient.capture_log
BaseClient.capture_log was removed in sentry-sdk 2.25.0 pypi.org - Removed
sentry_sdk.Client.capture_log
Client.capture_log was removed in sentry-sdk 2.25.0 pypi.org
And 3 more in this version.
sentry-sdk 2.23.1 breaking changes
- Removed
sentry_sdk.integrations.asgi.TRANSACTION_SOURCE_CUSTOM
sentry_sdk.integrations.asgi.TRANSACTION_SOURCE_CUSTOM was removed in sentry-sdk 2.23.1 pypi.org - Removed
sentry_sdk.integrations.asgi.TRANSACTION_SOURCE_URL
sentry_sdk.integrations.asgi.TRANSACTION_SOURCE_URL was removed in sentry-sdk 2.23.1 pypi.org
And 16 more in this version.
sentry-sdk 2.22.0 breaking changes
- Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org - Signature changed
sentry_sdk.consts.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org
sentry-sdk 2.21.0 breaking changes
- Removed
sentry_sdk.feature_flags.FlagBuffer.buffer
FlagBuffer.buffer was removed in sentry-sdk 2.21.0 pypi.org - Removed
sentry_sdk.profiler.continuous_profiler.ContinuousScheduler.should_autostart
ContinuousScheduler.should_autostart was removed in sentry-sdk 2.21.0 pypi.org
And 5 more in this version.
sentry-sdk 2.20.0 breaking changes
- Removed
sentry_sdk.flag_utils
sentry_sdk.flag_utils was removed in sentry-sdk 2.20.0 pypi.org - Removed
sentry_sdk.integrations.asyncpg.asyncpg_version
sentry_sdk.integrations.asyncpg.asyncpg_version was removed in sentry-sdk 2.20.0 pypi.org
And 13 more in this version.
sentry-sdk 2.19.1 breaking changes
- Renamed
The LaunchDarkly integration hook was renamed to match the JS SDK. Code that imports or references the old hook name must switch to the new name. github.com - Signature changed
sentry_sdk.client.ClientConstructor.__init__
Was def __init__(self, dsn=None, *, max_breadcrumbs=DEFAULT_MAX_BREADCRUMBS, release=None, environment=None, server_name=None, shutdown_timeout=2, integrations=[], in_app_include=[], in_app_exclude=[], default_integrations=True, dist=None... pypi.org
And 5 more in this version.
sentry-sdk 2.19.0 breaking changes
- Removed
sentry_sdk.spotlight.SpotlightMiddleware.__call__
SpotlightMiddleware.__call__ was removed in sentry-sdk 2.19.0 pypi.org - Removed
sentry_sdk.spotlight.SpotlightMiddleware.get_response
SpotlightMiddleware.get_response was removed in sentry-sdk 2.19.0 pypi.org
And 4 more in this version.
sentry-sdk 2.17.0 breaking changes
- Removed
sentry_sdk.utils.ensure_integration_enabled_async
The ensure_integration_enabled_async helper was removed in this release. Code that imports or calls it must stop using it. pypi.org
sentry-sdk 2.16.0 breaking changes
- Renamed
sentry_sdk.client.HttpTransport
Use sentry_sdk.client.BaseHttpTransport instead. pypi.org - Signature changed
sentry_sdk.HttpTransport
Was class HttpTransport(Transport); now class HttpTransport(BaseHttpTransport). pypi.org
And 4 more in this version.
sentry-sdk 2.15.0 breaking changes
- Removed
explain_plan
The experimental explain_plan feature has been removed. Code that calls it will no longer work. github.com - Removed
sentry_sdk.db
sentry_sdk.db was removed in sentry-sdk 2.15.0 pypi.org
And 17 more in this version.
sentry-sdk 2.14.0 breaking changes
- Removed
sentry_sdk.ai.monitoring.TYPE_CHECKING
sentry_sdk.ai.monitoring.TYPE_CHECKING was removed in sentry-sdk 2.14.0 pypi.org - Removed
sentry_sdk.ai.utils.TYPE_CHECKING
sentry_sdk.ai.utils.TYPE_CHECKING was removed in sentry-sdk 2.14.0 pypi.org
And 27 more in this version.
sentry-sdk 2.13.0 breaking changes
- Removed
sentry_sdk.client.disable_capture_event
sentry_sdk.client.disable_capture_event was removed in sentry-sdk 2.13.0 pypi.org - Removed
sentry_sdk.integrations.wsgi.auto_session_tracking
sentry_sdk.integrations.wsgi.auto_session_tracking was removed in sentry-sdk 2.13.0 pypi.org
And 20 more in this version.
sentry-sdk 2.12.0 breaking changes
- Removed
The experimental OTel autoinstrumentation feature has been removed. Code relying on it must be changed to set up instrumentation another way. github.com - Removed
sentry_sdk.consts.Integration
sentry_sdk.consts.Integration was removed in sentry-sdk 2.12.0 pypi.org
And 6 more in this version.
sentry-sdk 2.11.0 breaking changes
- Removed
sentry_sdk.hub.ClientConstructor
sentry_sdk.hub.ClientConstructor was removed in sentry-sdk 2.11.0 pypi.org - Removed
sentry_sdk.hub.init
sentry_sdk.hub.init was removed in sentry-sdk 2.11.0 pypi.org
And 4 more in this version.
sentry-sdk 2.10.0 breaking changes
- Removed
Python 2 compatibility code was removed, so Python 2 is no longer supported. github.com - Removed
sentry_sdk.debug.Hub
sentry_sdk.debug.Hub was removed in sentry-sdk 2.10.0 pypi.org
And 18 more in this version.
sentry-sdk 2.9.0 breaking changes
- Removed
sentry_sdk.transport.DataCategory
sentry_sdk.transport.DataCategory was removed in sentry-sdk 2.9.0 pypi.org - Signature changed
sentry_sdk.HttpTransport.record_lost_event
Was def record_lost_event(self, reason, data_category=None, item=None); now def record_lost_event(self, reason, data_category=None, item=None, *, quantity=1). pypi.org
And 2 more in this version.
sentry-sdk 2.8.0 breaking changes
- Behavior changed
The SDK now passes only a limited environment to subprocesses instead of the full one. Code that relies on inherited variables in those subprocesses may need to set them explicitly. github.com - Behavior changed
Empty baggage is no longer sent on outgoing requests. Code that expects an empty baggage header to be present may need to change. github.com
sentry-sdk 2.7.1 breaking changes
- Signature changed
sentry_sdk.integrations.fastapi.StarletteIntegration.__init__
Was def __init__(self, transaction_style='url', failed_request_status_codes=None); now def __init__(self, transaction_style='url', failed_request_status_codes=None, middleware_spans=True). pypi.org - Signature changed
sentry_sdk.integrations.starlette.StarletteIntegration.__init__
Was def __init__(self, transaction_style='url', failed_request_status_codes=None); now def __init__(self, transaction_style='url', failed_request_status_codes=None, middleware_spans=True). pypi.org
sentry-sdk 2.7.0 breaking changes
- Removed
sentry_sdk.integrations.gnu_backtrace.Hub
sentry_sdk.integrations.gnu_backtrace.Hub was removed in sentry-sdk 2.7.0 pypi.org - Renamed
sentry_sdk.integrations.opentelemetry.integration.SentryPropagator
Use sentry_sdk.integrations.opentelemetry.distro.SentryPropagator instead. pypi.org
And 17 more in this version.
sentry-sdk 2.6.0 breaking changes
- Removed
sentry_sdk.profiler.capture_internal_exception
sentry_sdk.profiler.capture_internal_exception was removed in sentry-sdk 2.6.0 pypi.org - Removed
sentry_sdk.profiler.Event
sentry_sdk.profiler.Event was removed in sentry-sdk 2.6.0 pypi.org
And 28 more in this version.
sentry-sdk 2.5.1 breaking changes
- Behavior changed
sentry_sdk.Scope.clear
Calling scope clear also resets last_event_id, so code that reads last_event_id after clearing the scope will see it reset. github.com
sentry-sdk 2.5.0 breaking changes
- Signature changed
sentry_sdk.integrations.fastapi.StarletteIntegration.__init__
Was def __init__(self, transaction_style='url'); now def __init__(self, transaction_style='url', failed_request_status_codes=None). pypi.org - Signature changed
sentry_sdk.integrations.starlette.StarletteIntegration.__init__
Was def __init__(self, transaction_style='url'); now def __init__(self, transaction_style='url', failed_request_status_codes=None). pypi.org
sentry-sdk 2.4.0 breaking changes
- Behavior changed
The cache.key span data field is now a list instead of its previous value. Code that reads or filters on this span field may need to handle a list. github.com
sentry-sdk 2.3.1 breaking changes
- Removed
sentry_sdk.integrations.excepthook.ensure_integration_enabled
sentry_sdk.integrations.excepthook.ensure_integration_enabled was removed in sentry-sdk 2.3.1 pypi.org
sentry-sdk 2.3.0 breaking changes
- Removed
sentry_sdk.consts.OP.CACHE_GET_ITEM
sentry_sdk.consts.OP.CACHE_GET_ITEM was removed in sentry-sdk 2.3.0 pypi.org - Removed
sentry_sdk.integrations.redis.asyncio
sentry_sdk.integrations.redis.asyncio was removed in sentry-sdk 2.3.0 pypi.org
And 11 more in this version.
sentry-sdk 2.1.0 breaking changes
- Removed
sentry_sdk.integrations.openai.COMPLETION_TOKENS_USED
sentry_sdk.integrations.openai.COMPLETION_TOKENS_USED was removed in sentry-sdk 2.1.0 pypi.org - Removed
sentry_sdk.integrations.openai.PROMPT_TOKENS_USED
sentry_sdk.integrations.openai.PROMPT_TOKENS_USED was removed in sentry-sdk 2.1.0 pypi.org
And 1 more in this version.
sentry-sdk 2.0.1 breaking changes
- Removed
sentry_sdk.integrations.aiohttp.ensure_integration_enabled_async
sentry_sdk.integrations.aiohttp.ensure_integration_enabled_async was removed in sentry-sdk 2.0.1 pypi.org - Removed
sentry_sdk.scope.extract_sentrytrace_data
sentry_sdk.scope.extract_sentrytrace_data was removed in sentry-sdk 2.0.1 pypi.org
sentry-sdk 2.0.0 breaking changes
- Removed
The SDK now requires Python 3.6 or later. Stay on 1.x if you run Python 2.7 or 3.5. github.com - Removed
Flask 0.x is no longer supported by the SDK. github.com
And 220 more in this version.
sentry-sdk 2.0.0rc2 breaking changes
- Removed
Support for gRPC older than 1.39 was removed. github.com
sentry-sdk 2.0.0a1 breaking changes
- Removed
Celery 3.x is no longer supported. github.com - Removed
The SDK now requires at least Python 3.6. github.com
And 20 more in this version.
sentry-sdk 1.0.0 breaking changes
- Removed
sentry_sdk.client.SessionFlusher.session_mode
The experimental session_mode option can no longer be set explicitly; its value is now detected automatically, so code setting it must be removed. pypi.org - Configuration changed
auto_session_tracking
The experimental auto_session_tracking flag was turned into a regular option, and session tracking is now auto-detected, so release health is enabled by default. github.com
And 10 more in this version.
sentry-sdk 0.20.0 breaking changes
- Removed
sentry_sdk.client.get_default_environment
sentry_sdk.client.get_default_environment was removed in sentry-sdk 0.20.0 pypi.org - Removed
sentry_sdk.client.SessionFlusher.flush_func
SessionFlusher.flush_func was removed in sentry-sdk 0.20.0 pypi.org
And 6 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.