unstale

pypi / sentry-sdk

sentry-sdk

What changed in sentry-sdk 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 breaking2 security3 deprecations18 new APIs and options1 performance12 behavior and defaults20 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

sentry-sdk 257 changes

Breaking changes 1

  • Stacktraces are no longer attached to check-ins.

    2.69.2release notes

Security 2

  • The scrubber now scrubs request bodies that are JSON arrays.

    2.72.0release notes

  • The clickhouse_driver breadcrumb only sets db.result when sensitive data is opted in.

    2.69.2release notes

Deprecations 3

New APIs and options 18

  • Exports DataCollectionUserOptions from sentry_sdk.types for users who need to import this type.

    2.72.0release notes

  • Inbound filters receive sentry.is_localhost across ASGI, WSGI, aiohttp, Sanic, and Tornado integrations.

    2.72.0release notes

  • Adds the ServiceExtension class to the Boto3 integration.

    2.72.0release notes

  • The TypeSafe integration records gen_ai.output.messages.

    2.71.0release notes

  • Adds integration support for system_one() patches.

    2.71.0release notes

  • Adds a TypeSafe integration that can be enabled in the sentry_sdk.init integrations list.

    2.71.0release notes

  • Adds fine-grained control over what data the SDK collects; when defined, it takes precedence over send_default_pii.

    2.70.0release notes

  • Adds a Mistral integration that patches Chat.complete and Chat.complete_async and records GenAI messages, system instructions, request parameters, and token usage.

    2.70.0release notes

  • The Django integration adds the http.route attribute.

    2.69.1release notes

  • aiohttp adds the http.route attribute.

    2.69.0release notes

  • Bottle adds the http.route attribute.

    2.69.0release notes

  • Falcon adds the http.route attribute.

    2.69.0release notes

  • FastAPI adds the http.route attribute.

    2.69.0release notes

  • Flask adds the http.route attribute.

    2.69.0release notes

  • Pyramid adds the http.route attribute.

    2.69.0release notes

  • Quart adds the http.route attribute.

    2.69.0release notes

  • Starlette adds the http.route attribute.

    2.69.0release notes

  • SpanJSON is now exported for developers to import and use.

    2.69.0release notes

Performance 1

  • Log records are no longer formatted when Sentry logs are off.

    2.69.2release notes

Behavior and default changes 12

  • Adds common OpenTelemetry AWS client attributes to Boto3 instrumentation.

    2.72.0release notes

  • Adds response, retry, and error span attributes for Boto3 instrumentation.

    2.72.0release notes

  • Boto3 tracing now covers the complete botocore client-call lifecycle.

    2.72.0release notes

  • Returns None when capture_checkin sends nothing.

    2.72.0release notes

  • The TypeSafe integration records gen_ai.input.messages.

    2.71.0release notes

  • The TypeSafe integration records gen_ai.response.model.

    2.71.0release notes

  • The TypeSafe integration sets token usage attributes.

    2.71.0release notes

  • Breadcrumbs are set in the streaming trace lifecycle.

    2.69.0release notes

  • The httpx and httpx2 integrations always capture a breadcrumb.

    2.69.0release notes

  • MCP and LangChain add a mechanism to captured exceptions.

    2.69.0release notes

  • SQLAlchemy span data supports more database system names.

    2.69.0release notes

  • Starlette uses the url transaction source for host routing.

    2.69.0release notes

Fixes and other changes 20

  • Fixes span, metrics, and log client reports.

    2.72.0release notes

  • Improves localhost detection for IPv6 addresses.

    2.72.0release notes

  • Finishes the span for StreamingBody correctly.

    2.72.0release notes

  • Events are kept when a processor raises an exception.

    2.71.0release notes

  • User callbacks are isolated and client reports are emitted.

    2.71.0release notes

  • User info is now attached to streaming spans in the aws-lambda integration.

    2.69.2release notes

  • Avoids an infinite serialization loop in the bottle integration.

    2.69.2release notes

  • Fixes the type of disabled_integrations.

    2.69.2release notes

  • functions_to_trace now works when spans are streamed.

    2.69.2release notes

  • The integration now tolerates None candidates.

    2.69.2release notes

  • Pydantic AI no longer captures tool execution spans when validation fails.

    2.69.2release notes

  • The aiohttp integration preserves SigV4-signed propagation headers.

    2.69.1release notes

  • A failed flush no longer kills the flusher thread.

    2.69.0release notes

  • Fixes botocore SigV4 failures caused by post-sign trace propagation.

    2.69.0release notes

  • The OpenAI Responses API integration now reads input_text parts.

    2.69.0release notes

  • Tool and prompt handlers now handle None arguments.

    2.69.0release notes

  • Quart skips quart-flask-patch and adjusts error handling for quart>=0.23.

    2.69.0release notes

  • The OpenAI integration checks that Response.output is a list before iterating.

    2.69.0release notes

  • Stateless StreamableHTTP servers are no longer reported as stdio.

    2.69.0release notes

  • Starlette sets the transaction name on the current scope in the sync handler.

    2.69.0release notes