pypi / sentry-sdk
sentry-sdk
What changed in sentry-sdk 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
69 breaking16 security19 deprecations87 new APIs and options2 performance97 behavior and defaults208 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsentry-sdk 2490 changes
Breaking changes 68
Anthropic output arrays are no longer unpacked.
Exceptions raised during stream iteration are no longer swallowed.
Exceptions raised during stream iteration are no longer swallowed.
Stacktraces are no longer attached to check-ins.
This option is now a no-op. Automatic log collection is off by default; opt in using capture_sentry_logs on LoggingIntegration or LoguruIntegration.
The prompt name is no longer added to arguments.
The integration supports the MCP SDK v2 handler signature and its removal of request_ctx.
The integration gates url.full and http.query on send_default_pii.
ASGI query strings and client IP are gated behind send_default_pii.
Removes 0000 trace_id fallbacks.
The patch for Agent.run_stream_events() has been removed.
Hosted MCP tool spans are no longer created.
Invoke Agent spans no longer have tokens set.
Only built-in sequences are serialized by iteration, avoiding side effects from custom __iter__ implementations. Custom sequence classes can be registered with add_repr_sequence_type.
Span streaming sets code.namespace and code.function instead of code.function.name.
Potentially sensitive data, including GraphQL documents, is gated behind send_default_pii.
The pydantic-ai integration stops capturing internal exceptions.
Middleware spans are disabled by default in Django, Starlette, and FastAPI; set middleware_spans on the integration to capture individual spans per middleware layer.
User attributes in metrics and logs are gated behind send_default_pii.
Adds an integration that automatically sends OpenTelemetry instrumentation to Sentry's OTLP ingestion endpoint, including exporter setup, propagation, and trace/span linking.
No longer autodetects sync versus async execution and enables the sync version by default; set async_execution explicitly to enable the async version.
The callback signature changes to accept
key,value,unit, andtagsinstead of onlykeyandtags.Support for Celery 3.* was removed.
Support for Django 1.8, 1.9, and 1.10 was removed.
The SDK now sends all events to the
/envelopeAPI endpoint, requiring self-hosted Sentry v20.6.0 or later.Support for Flask 0.* was removed.
Fork an isolation scope instead of cloning a Hub by passing it to the
Hubconstructor.Use this API to get the current scope for changes affecting a smaller unit of code, such as a span.
Use this API to get the isolation scope for changes affecting a whole transaction.
Support for gRPC versions below 1.39 was removed.
This option is the replacement for the removed
with_localsoption.Custom integrations can no longer use the install method; use setup_once instead.
This context manager forks and activates an isolation scope, providing isolation similar to the former Hub-based approach.
The API function was removed in 2.0.0; the notes state it was brought back in 2.2.0.
This option is the replacement for the removed
request_bodiesoption.The method need_code_loation was renamed to need_code_location; update calls to use the corrected spelling.
Fork the current scope with this API for a smaller, localized part of the code.
The integration no longer captures errors that might happen in authenticated_userid() in a custom AuthenticationPolicy class.
Sentry Python 2.0 supports Python 3.6 and higher; users on Python 2.7 or Python 3.5 and lower must stay on 1.x.
This deprecated option was removed; use
max_request_body_sizeinstead.Use the current scope directly to mutate a manually created transaction; mutating it later inside configure_scope no longer works.
The BackgroundWorker thread name changed from raven-sentry.BackgroundWorker to sentry-sdk.BackgroundWorker.
Integration is now an abstract base class and cannot be instantiated unless subclasses implement setup_once.
The top-level API was removed; capture_event, capture_exception, and capture_message still return the last event ID.
Metric is now an abstract base class and subclasses must implement add, serialize_value, and weight.
Scheduler is now an abstract base class and subclasses must implement setup and teardown.
The no-op method was removed, so calls to it can be deleted.
The class moved from sentry_sdk.hub to sentry_sdk.scope; update imports accordingly.
The hub parameter was removed because it is no longer necessary.
The function now takes a scope instead of a hub.
The hub parameter was removed because it is no longer necessary.
The first parameter now takes a Client instead of a Hub.
Creating transactions with Span(transaction=...) is no longer supported; use Transaction(name=...).
The method was removed; use Span.start_child instead.
The method was removed; use Transaction.start_child instead.
Transport is now an abstract base class and subclasses must implement capture_envelope.
The function now returns a two-value tuple instead of a three-value tuple; copy_context was removed.
The parameter now accepts an EndpointType enum instead of a string; the notes recommend omitting it because its default is the only possible enum value.
The method was removed.
The first parameter now takes a Client instead of a Hub.
The function moved from sentry_sdk._compat to sentry_sdk.utils; update imports accordingly.
Support for Tornado versions below 6 was removed.
The file was removed; start_child_span_decorator is now in sentry_sdk.tracing_utils.
The contents of tracing_utils_py3.py moved to tracing_utils.py, and start_child_span_decorator is now in sentry_sdk.tracing_utils.
Use this method in place of the deprecated
Transport.capture_eventfor custom transports.Pass an isolation scope to this API to activate it as a context manager.
Support for user.segment was removed from events, the trace header, and the dynamic sampling context.
This deprecated option was removed; use
include_local_variablesinstead.
Security 16
The gql integration removes credentials and query values from the transport URL.
The scrubber now scrubs request bodies that are JSON arrays.
The clickhouse_driver breadcrumb only sets db.result when sensitive data is opted in.
The integration gates url.full, url.path, and url.query on send_default_pii.
The integration gates url.full, url.query, and url.fragment on send_default_pii.
The integration gates url.full, url.query, and url.fragment on send_default_pii.
The integration gates url.full and url.query on send_default_pii.
The integration gates url.full, url.query, and url.fragment on send_default_pii.
The integration gates url.full, url.path, and http.query on send_default_pii.
The integration gates url.full, url.path, and url.query on send_default_pii.
The integration gates url.full, url.path, and http.query on send_default_pii.
The integration guards setting method.
Binary data in inline_data is redacted, and multi-part message extraction is fixed.
Base64 data URLs in image_url content blocks are redacted.
Response extraction is guarded in the google-genai integration.
Redacts message parts whose content is of type blob.
Deprecations 19
Deprecates ai.monitoring.record_token_usage().
Deprecates the send_default_pii option.
Deprecates transaction profiling.
The enable_logs option is deprecated and will be removed in the next major release; logger.X works regardless, and auto-collection can be opted into through integration-level options.
ai_track() is deprecated.
Deprecates OpenTelemetryIntegration in favor of OTLPIntegration.
continue_from_headers is deprecated.
Deprecates the max_spans LangChain parameter.
Deprecates the description truncation option for Redis spans.
This scope API is deprecated; get the current or isolation scope depending on the intended lifetime of the change.
Setting
profiler_modethrough_experimentsis deprecated; set it directly instead.Setting
profiles_sample_ratethrough_experimentsis deprecated; set it directly instead.Hub-based APIs are deprecated; use the new scope APIs for custom instrumentation and event-data isolation.
Hub cloning is deprecated; use isolation_scope to work with a forked scope.
This scope API is deprecated; fork the current or isolation scope depending on how long the new scope should be active.
Use the top-level API to access the current client instead of accessing it through the hub.
The propagate_hub parameter is deprecated and renamed to propagate_scope.
Transport functions are deprecated; custom transports should be implemented as
sentry_sdk.transport.Transportsubclasses.This custom transport method is deprecated; use
Transport.capture_envelopeinstead.
New APIs and options 87
Adds support for Amazon Bedrock Converse and ConverseStream APIs; the Boto3 integration is enabled automatically when boto3 is installed or can be configured explicitly.
Adds an extension skeleton for authoring Bedrock integration extensions.
Sets the input messages attribute for Bedrock requests.
Sets the request model attribute for Bedrock calls.
Records finish reasons for streamed and non-streaming Bedrock responses.
Sets the time-to-first-chunk attribute for Bedrock responses.
Sets the system instructions attribute for Bedrock requests.
Sets the tool definitions attribute for Bedrock requests.
An option was added to monitor arq cron jobs.
Attributes is now exported from the public types module.
An option was added to monitor Huey periodic tasks.
An option was added to monitor rq-scheduler jobs.
Exports DataCollectionUserOptions from sentry_sdk.types for users who need to import this type.
Inbound filters receive sentry.is_localhost across ASGI, WSGI, aiohttp, Sanic, and Tornado integrations.
Adds the ServiceExtension class to the Boto3 integration.
The TypeSafe integration records gen_ai.output.messages.
Adds integration support for system_one() patches.
Adds a TypeSafe integration that can be enabled in the sentry_sdk.init integrations list.
Adds fine-grained control over what data the SDK collects; when defined, it takes precedence over send_default_pii.
Adds a Mistral integration that patches Chat.complete and Chat.complete_async and records GenAI messages, system instructions, request parameters, and token usage.
The Django integration adds the http.route attribute.
aiohttp adds the http.route attribute.
Bottle adds the http.route attribute.
Falcon adds the http.route attribute.
FastAPI adds the http.route attribute.
Flask adds the http.route attribute.
Pyramid adds the http.route attribute.
Quart adds the http.route attribute.
Starlette adds the http.route attribute.
SpanJSON is now exported for developers to import and use.
Adds failed_request_status_codes to Django integration configuration.
Adds the capture_sentry_logs boolean option to explicitly enable automatic log collection; it defaults to False.
Adds the capture_sentry_logs boolean option to explicitly enable automatic log collection; it defaults to False.
Streaming now supports the ai_track decorator.
before_send_span is now available as a top-level option.
The DRF integration adds a span for authentication.
OpenAI spans now include this reasoning-level attribute.
A top-level set_attributes API is available.
Promoted ignore_spans to a top-level option.
Promoted trace_lifecycle to a top-level option.
Adds an aiomysql integration that can be enabled by adding AioMySQLIntegration() to the integrations list.
Adds out-of-the-box support for HTTPX2, automatically enabling the Sentry integration when the package is used.
Integrations can define control flow exceptions.
The asyncpg integration adds cursor span support by patching the BaseCursor method.
Adds a transport for debug logging of envelopes.
Enables extracting gen_ai spans from a transaction and sending them as v2 envelope items; truncation is removed when this option is enabled, helping avoid dropped spans when transaction payloads exceed size limits.
Adds async callbacks for LiteLLM.
Adds tracing instrumentation for pyreqwest.
An experimental async transport is available.
ASGI adds an option to disable suppressing chained exceptions.
Logging now has separate ignore lists for events and breadcrumbs versus Sentry logs.
Anthropic spans now include the gen_ai.response.id attribute.
Anthropic spans now include the gen_ai.system attribute.
MonitorConfig now has an owner field.
OTLPIntegration now accepts a collector_url option.
Adds a top-level API to unset attributes on logs and metrics; other event types are unaffected.
Adds a top-level API to set attributes on logs and metrics; other event types are unaffected.
The integration adds gen_ai.conversation.id when it is available.
Asyncio task spans can now be turned off.
OpenAI and OpenAI Agents detect and report the time to first token metric under this attribute.
The OpenAI Agents integration sets the system instruction attribute on gen_ai.chat spans and supports streaming.
AI instrumentation adds metadata for the original input length.
The Pydantic AI integration sets the system instruction attribute.
Adds set_conversation_id and conversation ID management functions on Scope; the conversation ID is applied to the Span on finish.
Enables AsyncioIntegration on demand after sentry_sdk.init(), including when the event loop is not running during initialization or when instrumenting multiple event loops.
Adds cache writes for gen_ai.
Adds a function to parse a data URI.
Adds Scope.set_attribute for setting an attribute on a scope.
OTLP can optionally capture exceptions recorded through OpenTelemetry's Span.record_exception API.
OTLPIntegration implements a new Propagator.inject method.
LangGraph invocation spans now include a response model attribute.
AI integrations can truncate a single message.
LangGraph invocation spans now include usage attributes.
The GoogleGenAI integration now supports embed_content methods.
Support for org_id is added.
Strict trace continuation is implemented.
Instrumentation is added for embedding functions across various backends.
Adds support for external_propagation_context.
Allows new integration setup on the instance with config options.
Adds the ability to auto-deactivate lower-level integrations based on a map.
Pass async_execution=True to StrawberryIntegration to enable its async version.
Adds support for LangChain v1.
Adds an integration for the Python MCP SDK.
Adds the Pydantic AI integration, allowing AI calls to be observed in Sentry AI dashboards.
Adds a Google GenAI integration for observing AI calls in Sentry AI dashboards.
A new context manager forks the necessary scopes for custom instrumentation, replacing deprecated push_scope usage.
The top-level API lets the SDK handle which scope receives the data, rather than requiring manual mutation through
scope.set_tag().
Performance 2
AWS Lambda path-style handlers are loaded once instead of on every invocation.
Log records are no longer formatted when Sentry logs are off.
Behavior and default changes 95
Sets the output messages attribute for streamed and non-streaming Bedrock responses.
Records inferenceConfig parameters for Bedrock requests.
Marks @monitor jobs so scheduler integrations skip them.
Anthropic nonstreaming output now records reasoning parts.
Anthropic streaming output now records reasoning parts.
Adds common OpenTelemetry AWS client attributes to Boto3 instrumentation.
Adds response, retry, and error span attributes for Boto3 instrumentation.
Boto3 tracing now covers the complete botocore client-call lifecycle.
Returns None when capture_checkin sends nothing.
The TypeSafe integration records gen_ai.input.messages.
The TypeSafe integration records gen_ai.response.model.
The TypeSafe integration sets token usage attributes.
Breadcrumbs are set in the streaming trace lifecycle.
The httpx and httpx2 integrations always capture a breadcrumb.
MCP and LangChain add a mechanism to captured exceptions.
SQLAlchemy span data supports more database system names.
Starlette uses the url transaction source for host routing.
This option is now a no-op, so metrics emitted using the metrics API will be emitted regardless of its value.
LangChain records cached token usage attributes.
Pydantic AI records output messages, including ThinkingPart.
OpenAI Responses API spans now set this attribute.
OpenAI Chat Completions API spans now set this attribute.
The OpenAI Agents integration now sets this attribute.
The batcher can trigger a global flush based on summed size estimates.
The batcher adds a hard limit on spans.
LangChain records reasoning token usage.
sentry-trace now takes precedence over baggage.
The span attribute now includes the query string and fragment.
Huey consumer spans now set the messaging.destination.name attribute.
Huey producer spans now set the messaging.destination.name attribute.
arq consumer spans now set the messaging.destination.name attribute.
Dramatiq consumer spans now set the messaging.destination.name attribute.
RQ consumer spans now set the messaging.destination.name attribute.
When multiple sentry-trace headers are supplied, tracing now uses the first one.
set_user now drops user attribute values that are None.
Gen AI spans are streamed as v2 envelope items by default, avoiding transaction-size drops and truncation of AI message data. Set this to False to restore previous behavior or for self-hosted Sentry instances that may not ingest streamed spans.
Sets user.ip_address on telemetry when it is present.
The integration uses Sentry span attribute name conventions.
String truncation is disabled by default. Set max_value_length to 100_000 to restore the previous limit if large envelopes are dropped.
Root gen_ai spans are automatically wrapped for openai, cohere, langgraph, and huggingface_hub.
Transformed spans include server.address when stream_gen_ai_spans=True.
The integration passes along the conversation ID for OpenAI responses calls.
Filtered fields receive substitute values in span-streaming mode.
The stdlib integration instruments response body reads for chunked HTTP responses.
Database integration spans now include db.driver.name.
FastAPI supports span streaming in active thread tracking.
Langchain chat and tool spans record the agent name as gen_ai.agent.name.
Langchain instrumentation records run_name as gen_ai.function_id on invoke-agent, tool, chat-model, and text-completion spans.
The async gRPC server interceptor now adds isolation_scope.
Langchain AI provider detection now extends beyond OpenAI and Anthropic.
LLM spans now use gen_ai.generate_text as their operation.
LLM spans now set gen_ai.operation.name.
LLM spans now set gen_ai.pipeline.name.
The streaming attribute is now always set for OpenAI Responses.
The streaming attribute is now always set for OpenAI Completions.
The Responses API now uses max_output_tokens.
List-based message content is now truncated in AI monitoring.
Pydantic AI execute_tool spans now include the tool description.
Anthropic AI monitoring spans now record finish reasons.
Pydantic AI span instrumentation now supports ImageUrl content.
Asynchronous Anthropic messages.stream() now emits gen_ai.chat spans.
Synchronous Anthropic messages.stream() now emits AI Client Spans.
Removes agent spans for simple requests.
Uses HEROKU_BUILD_COMMIT as the default release value.
Attaches the response model for streamed Completions API responses.
Attaches the response model for streamed Responses API responses.
The transport reports 413 responses for oversized envelopes.
The Anthropic integration sets the system instruction attribute.
The Google GenAI integration sets the system instruction attribute.
The LangChain integration sets the system instruction attribute.
The OpenAI integration sets the system instruction attribute for the Responses and Completions APIs.
Injects propagation headers for HostedMCPTool.
Supports array types for logs and metrics attributes.
The release check now recognizes the K_REVISION environment variable exposed by Cloud Run.
A span is now created around Django's Task.enqueue.
Starlette sets the transaction name when middleware spans are disabled.
The SDK now records discarded log bytes.
The Django integration now instruments database commits.
The Django integration now instruments database rollbacks.
Long messages are truncated by the OpenAI Agents integration.
Chat and invoke_agent spans now report usage and response model.
The integration now reports token usage and response model for invoke_agent spans.
Adds MCP SDK, Pydantic AI, and OpenAI Agents to the integrations enabled automatically.
The Loguru integration captures extra data.
Adds context management for invoke_agent spans.
Metrics now include server.address.
Makes the before_send_metric option non-experimental.
Makes the enable_metrics option non-experimental.
Adds a hard limit to log batches.
Adds a hard limit to metrics batches.
Enables HTTP request code origin by default.
Officially supports Python 3.14 and runs integration tests on it.
Slow outgoing HTTP requests now include source information.
Integrations for Ariadne, ARQ, asyncpg, Chalice, clickhouse-driver, GQL, Graphene, huey, Loguru, PyMongo, Quart, Starlite, and Strawberry are activated automatically when their packages are detected.
This option can now be set directly instead of through
_experiments.
Fixes and other changes 203
Sets token attributes for streamed and non-streaming Bedrock responses.
Preserves caches when using --only and --skip.
aiohttp instrumentation leaves an existing baggage header unchanged.
The boto3 integration adapts to botocore no longer signing baggage.
Serialization drops the trailing comma when baggage has no third-party items.
Sampling respects the incoming sample rate unless it is explicitly overridden.
Typesafe handling for inline images is added.
Falcon instrumentation handles integer HTTP statuses.
The cached Anthropic _iterator property is preserved.
WSGI instrumentation no longer overwrites server.address.
Cron jobs with unsupported schedules are no longer monitored.
Beat schedule intervals are no longer rounded down.
litellm==1.107.0 is excluded from extras.
Special float values in attributes are now handled correctly.
Fixes span, metrics, and log client reports.
Improves localhost detection for IPv6 addresses.
Finishes the span for StreamingBody correctly.
Events are kept when a processor raises an exception.
User callbacks are isolated and client reports are emitted.
User info is now attached to streaming spans in the aws-lambda integration.
Avoids an infinite serialization loop in the bottle integration.
Fixes the type of disabled_integrations.
functions_to_trace now works when spans are streamed.
The integration now tolerates None candidates.
Pydantic AI no longer captures tool execution spans when validation fails.
The aiohttp integration preserves SigV4-signed propagation headers.
A failed flush no longer kills the flusher thread.
Fixes botocore SigV4 failures caused by post-sign trace propagation.
The OpenAI Responses API integration now reads input_text parts.
Tool and prompt handlers now handle None arguments.
Quart skips quart-flask-patch and adjusts error handling for quart>=0.23.
The OpenAI integration checks that Response.output is a list before iterating.
Stateless StreamableHTTP servers are no longer reported as stdio.
Starlette sets the transaction name on the current scope in the sync handler.
When enable_logs=True, standard-library logging and Loguru integrations auto-collect and send logs to Sentry by default, preserving old behavior.
Anthropic, Google GenAI, LangChain, LangGraph, Hugging Face Hub, OpenAI, and OpenAI Agents gate this attribute on outputs rather than inputs.
LangChain uses this attribute when data collection is enabled.
The scope now receives the segment source when using NoOpStreamedSpan.
The scope now receives the segment name when using NoOpStreamedSpan.
The early return for NoOpStreamedSpan was removed, allowing set_transaction_name() to proceed for that span type.
Adds a global flush trigger based on the span number.
Exceptions raised in before_breadcrumb no longer bubble up.
Usage is no longer double-counted in multi-candidate responses.
The integration patches the correct run_single_turn_streamed reference.
The integration stops destructively wrapping tools.
The integration no longer records duplicate spans.
The AWS Lambda layer now supports Python 3.14.
The streaming set_conversation_id API now works.
The segment source is set when it is unset.
Exceptions raised within traces_sampler and other callbacks are now handled.
Streaming paths skip child span creation when there is no current span across HTTP clients, task queues, databases, web frameworks, Django, and miscellaneous integrations.
Starlette AuthenticationMiddleware no longer overwrites a user set during the request.
Django async middleware process_* hooks no longer raise ValueError.
ASGI request span attributes now include url.path.
Cursor iteration and fetch now use distinct span ops to prevent N+1 false positives.
GraphBubbleUp exceptions are now ignored.
The span is stored off-band rather than in forwarded metadata.
Streaming traces no longer truncate data in the trace lifecycle.
Streamed query spans now include db.query.text.
URLs no longer duplicate scope["root_path"].
Prevents sync handlers from being double-wrapped on FastAPI >= 0.137.
Uses the effective route context path for prefixed routers.
Control flow exceptions are no longer captured.
Handles baggage values containing '=' when parsing an incoming header.
Handles the string shorthand form of image_url when checking for image types with blob content.
Hooks are only used when ModelRequestContext.model exists.
Restores functools.wraps() for patched functions.
A failing child span no longer sets the transaction status.
The Anthropic integration no longer sets gen_ai.response.model to None.
The integration guards against a None response ID or response model.
Fixes an AttributeError on graphql_span in resolve.
Group and chord handling in enqueue is fixed.
A failing child span no longer sets the transaction status.
A TypeError during langchain.agents import is now caught.
A failing child span no longer sets the transaction status.
A failing child span no longer sets the transaction status.
A memory leak in SentrySpanProcessor is fixed.
OpenAI Agents uses name rather than description when calling start_span.
OpenAI Agents runner patches now handle the starting_agent keyword argument.
Yields are wrapped in try-except to ensure span cleanup.
http.server spans are now segments.
The OpenAI integration guards against choices being None.
A failing child span no longer sets the transaction status.
Responses patches finish only relevant spans.
Chat Completions patches finish only relevant spans.
Adds overloads for the trace decorator to fix typing.
Using proto version 2 fixes backfilled user agent and IP.
The batcher resets its lock and flusher in a child process after fork.
Adding request source now exits early consistently.
For openai-agents 0.14 and later, the integration resolves the agent from bindings.
The profiler no longer nulls its buffer on teardown.
The ASGI integration uses inspect.iscoroutinefunction on Python 3.14 and later.
The Quart integration uses inspect.iscoroutinefunction when Quart does.
Metrics and logs no longer attach span_id when there is no active span.
The Starlette and FastAPI integrations use inspect.iscoroutinefunction when Starlette does.
The context manager no longer double yields.
Anthropic .create() patches now finish only relevant spans.
WSGI request.url construction now respects HTTP_X_FORWARDED_PROTO.
Exceptions raised during Anthropic stream() calls are now captured.
LiteLLM streaming no longer exits spans twice.
A failing child span no longer sets the transaction status for Anthropic or Hugging Face Hub spans.
Cycle detection was added to exceptions_from_error.
Only types with _iterator are wrapped for streamed responses.
Patching AsyncMessageStream.close() ensures the associated span is finished.
Patching AsyncStream.close() ensures the associated span is finished.
Starlette integration now catches ImportError for Jinja2Templates.
Patching MessageStream.close() ensures the associated span is finished.
Patching Stream.close() ensures the associated span is finished.
Anthropic streaming spans now receive exception info when applicable.
LangChain wraps finish_reason in an array for the gen_ai span attribute.
Anthropic spans are now closed on GeneratorExit.
A deadlock in the log batcher is fixed.
Prevents a buffer race condition during rapid profiler start/stop cycles.
safe_serialize no longer double-serializes strings.
Celery now propagates headers set by the user.
Fixes token accounting.
Reads the method from handler_call_details for grpcio >= 1.76 compatibility.
Correctly appends baggage in the async client.
Avoids consuming iterables passed to the Completions API.
Avoids consuming iterables passed to the Embeddings API.
Adapts to ToolManager._call_tool being missing.
Does not wrap file responses when uWSGI offload-threads is enabled.
Patched the OpenAI Agents integration function following a library refactor.
Patched the OpenAI Agents integration function following a library refactor.
Patched the OpenAI Agents integration function following a library refactor.
Patched the OpenAI Agents integration function following a library refactor.
Fixes token reporting for Anthropic.
Fixes token reporting for Google Genai.
Deactivates Google Genai when LangChain is used.
Propagation headers are injected for HostedMCPTool when streaming.
Fixes the type of list attributes.
MCP integrations handle all awaitable return types.
MCP spans are nested under HTTP transactions.
Fixes token reporting for OpenAI.
The arq integration handles settings_cls when it is passed as a keyword argument.
Dramatiq cleans up the isolated scope and transaction when a message is skipped.
AI handling now keeps a single content input message.
Stops suppressing exception chains in AI integrations.
Adds content transformation for images and documents.
Reports image inputs and reworks extraction of gen_ai.request.messages from parameters.
Reverts the signature change to the patched gql.Client.execute method.
Derives interception state from channel fields.
Handles proxy tunnels in the httplib integration.
Adds multimodal content transformation functions for images, audio, and files.
Fixes gen_ai.request.messages to match the expected structure.
Guards integrations against module shadowing in litellm, clickhouse, pure-eval, ray, and typer.
Formats binary input message parts to conform with the gen_ai.request.messages structure.
Sends client reports for span recorder overflow.
Handles channels shadowing in the threading integration.
Fixes count_tokens for OpenAI.
Gates third-party imports in the grpc integration.
Gates third-party imports in the OpenTelemetry integration.
Keeps variadic keyword arguments last in signatures in the Ray integration.
Gates third-party imports in the Tryton integration.
Django sets the active thread ID when middleware spans are disabled.
The Ray actor class decorator now works with arguments.
The openai-agents integration fixes multi-patching of get_model.
The openai-agents integration fixes input messages that were wrapped too much in some cases.
pydantic-ai and openai-agents are added to the deactivation list to prohibit double span creation.
Logs set span_id instead of the sentry.trace.parent_span_id attribute.
Tornado no longer logs internal exceptions for user authentication.
The integration now stores the invoke_agent span on agents.RunContextWrapper.
The Anthropic integration now sets GEN_AI_OPERATION_NAME.
The integration no longer exits early when config is omitted, allowing it to set gen_ai.request.messages.
The system prompt is now included in the gen_ai.request.messages attribute.
The LangChain integration now adds gen_ai.response.model to chat spans.
_normalize_data now handles Pydantic model classes.
The OpenAI Agents integration avoids exiting a span twice when an exception occurs.
This method now always returns a PropagationContext.
Span status is added back.
Spotlight behavior is aligned with the SDK spec.
Input handling for embeddings in the LiteLLM integration is enhanced.
Fixes the integration mistakenly enabling itself.
Embeddings support for OpenAI is improved.
Imports are defensive to avoid ModuleNotFoundError in the Pydantic AI integration.
Exceptions are now expected when re-raised.
Metadata is preserved on wrapped coroutines.
Casts message and detail attributes before appending exception notes.
Ensures GEN_AI_AGENT_NAME is properly set for GEN_AI spans under an invoke_agent span.
Updates sentry.origin for logs.
Properly handles exceptions in tool calls.
Properly distinguishes network.transport from mcp.transport.
Fixes the NOT_GIVEN check in the Anthropic integration.
Adds input messages to errored spans as well.
Checks that response text is present to avoid AttributeError.
Avoids failing when ToolManager._call_tool() receives new parameters.
Improves how Django cache hits and misses are classified.
Uses the error tracing function to determine whether an execute tool span should be marked as an error.
Truncates messages for Google GenAI.
Sets the agent name for the Google GenAI integration.
Adds message truncation for LiteLLM.
Makes logger template formatting safer when keyword arguments are missing.
Messages are truncated for Anthropic, helping keep captured messages within size limits.
Scopes are injected into TimeoutThread exceptions with AWS Lambda, so exception handling has the correct scope context.
Events without breadcrumbs now receive a default breadcrumbs value.
Scopes are injected into TimeoutThread exceptions when using GCP, so exception handling has the correct scope context.
Messages are truncated for LangChain, helping keep captured messages within size limits.
Messages are truncated for LangGraph, helping keep captured messages within size limits.
Embeddings are classified correctly in the LiteLLM integration.
Message truncation is introduced for OpenAI integrations, helping keep captured messages within size limits.
ValueError is handled during scope resets.
Patching Ray tasks now retains the original function name.
The implementation moved to sentry_sdk.tracing_utils, while the top-level API remains accessible.
sentry-sdk 18 changes
Breaking changes 1
Explicitly setting the experimental option was removed; its value is now detected automatically.
Behavior and default changes 2
The experimental flag became a proper option.
Release health is enabled by default.
Fixes and other changes 5
Fixed the worker dropping events with level error when logging data dropping.
Tracing gets HTTP headers from the span rather than the transaction when possible.
Fixed Flask transactions missing the request body when they do not error.
Django transaction names now use
request.path_inforather thanrequest.path.Fixed honoring the
X-Forwarded-Forheader.