diff --git a/tests/integrations/clickhouse_driver/test_clickhouse_driver.py b/tests/integrations/clickhouse_driver/test_clickhouse_driver.py index aca5ad5b47..d4ac66551b 100644 --- a/tests/integrations/clickhouse_driver/test_clickhouse_driver.py +++ b/tests/integrations/clickhouse_driver/test_clickhouse_driver.py @@ -21,7 +21,6 @@ def test_clickhouse_client_breadcrumbs(sentry_init, capture_events) -> None: sentry_init( integrations=[ClickhouseDriverIntegration()], - data_collection={}, ) events = capture_events() @@ -418,7 +417,6 @@ def test_clickhouse_client_spans( sentry_init( integrations=[ClickhouseDriverIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -547,7 +545,6 @@ def test_clickhouse_client_spans( def test_clickhouse_dbapi_breadcrumbs(sentry_init, capture_events) -> None: sentry_init( integrations=[ClickhouseDriverIntegration()], - data_collection={}, ) events = capture_events() @@ -650,7 +647,6 @@ def test_clickhouse_dbapi_spans( sentry_init( integrations=[ClickhouseDriverIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -777,7 +773,6 @@ def test_span_origin(sentry_init, capture_items): sentry_init( integrations=[ClickhouseDriverIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") diff --git a/tests/integrations/cohere/test_cohere.py b/tests/integrations/cohere/test_cohere.py index e1efdd0652..b483fff24c 100644 --- a/tests/integrations/cohere/test_cohere.py +++ b/tests/integrations/cohere/test_cohere.py @@ -377,7 +377,6 @@ def test_bad_chat(sentry_init, capture_items): sentry_init( integrations=[CohereIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event", "span") @@ -401,7 +400,6 @@ def test_span_status_error(sentry_init, capture_items): sentry_init( integrations=[CohereIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -423,7 +421,6 @@ def test_span_origin_chat(sentry_init, capture_items): sentry_init( integrations=[CohereIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -459,7 +456,6 @@ def test_span_origin_embed(sentry_init, capture_items): sentry_init( integrations=[CohereIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") diff --git a/tests/integrations/falcon/test_falcon.py b/tests/integrations/falcon/test_falcon.py index 0cc3e83a7f..329e26ba5f 100644 --- a/tests/integrations/falcon/test_falcon.py +++ b/tests/integrations/falcon/test_falcon.py @@ -68,7 +68,6 @@ def test_has_context( ): sentry_init( integrations=[FalconIntegration()], - data_collection={}, ) client = make_client() @@ -278,7 +277,6 @@ def test_falcon_large_json_request( integrations=[FalconIntegration()], max_request_body_size="always", max_value_length=max_value_length, - data_collection={}, ) data = {"foo": {"bar": "a" * (1034)}} @@ -361,7 +359,6 @@ def test_falcon_raw_data_request( ): sentry_init( integrations=[FalconIntegration()], - data_collection={}, ) class Resource: @@ -626,7 +623,6 @@ def on_post(self, req, _): sentry_init( integrations=[FalconIntegration()], - data_collection={}, ) try: diff --git a/tests/integrations/fastapi/test_fastapi.py b/tests/integrations/fastapi/test_fastapi.py index 05337cd7e0..4937354e92 100644 --- a/tests/integrations/fastapi/test_fastapi.py +++ b/tests/integrations/fastapi/test_fastapi.py @@ -128,7 +128,6 @@ async def body_form( async def test_request_info_json_body(sentry_init, capture_items): sentry_init( traces_sample_rate=1.0, - data_collection={}, integrations=[StarletteIntegration()], ) @@ -169,7 +168,6 @@ async def test_request_info_json_body(sentry_init, capture_items): async def test_formdata_request_body(sentry_init, capture_items): sentry_init( traces_sample_rate=1.0, - data_collection={}, max_request_body_size="always", integrations=[StarletteIntegration()], ) @@ -215,7 +213,6 @@ async def test_formdata_request_body(sentry_init, capture_items): async def test_request_body_too_big(sentry_init, capture_items): sentry_init( traces_sample_rate=1.0, - data_collection={}, integrations=[StarletteIntegration()], ) @@ -343,7 +340,6 @@ async def test_response(sentry_init, capture_events): sentry_init( integrations=[StarletteIntegration(), FastApiIntegration()], traces_sample_rate=1.0, - data_collection={}, ) app = fastapi_app_factory() @@ -729,7 +725,6 @@ def test_transaction_http_method_custom(sentry_init, capture_items): def test_request_url(sentry_init, capture_items): sentry_init( traces_sample_rate=1.0, - data_collection={}, integrations=[ StarletteIntegration(), ], diff --git a/tests/integrations/fastmcp/test_fastmcp.py b/tests/integrations/fastmcp/test_fastmcp.py index edf101a330..821a2dcb7c 100644 --- a/tests/integrations/fastmcp/test_fastmcp.py +++ b/tests/integrations/fastmcp/test_fastmcp.py @@ -539,7 +539,6 @@ async def test_fastmcp_tool_with_error( sentry_init( integrations=[MCPIntegration(), LoggingIntegration(event_level=logging.ERROR)], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") @@ -785,7 +784,6 @@ async def test_fastmcp_resource_sync( sentry_init( integrations=[MCPIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") @@ -834,7 +832,6 @@ async def test_fastmcp_resource_async(sentry_init, capture_items, FastMCP, json_ sentry_init( integrations=[MCPIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") @@ -908,7 +905,6 @@ async def test_fastmcp_span_origin( sentry_init( integrations=[MCPIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") @@ -950,7 +946,6 @@ def test_fastmcp_http_transport(sentry_init, capture_items, FastMCP, json_rpc): sentry_init( integrations=[MCPIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") @@ -1014,7 +1009,6 @@ async def test_fastmcp_stdio_transport( sentry_init( integrations=[MCPIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mcp = FastMCP("Test Server") diff --git a/tests/integrations/google_genai/test_google_genai.py b/tests/integrations/google_genai/test_google_genai.py index 286650d872..e268be4230 100644 --- a/tests/integrations/google_genai/test_google_genai.py +++ b/tests/integrations/google_genai/test_google_genai.py @@ -478,7 +478,6 @@ def test_error_handling( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event") @@ -658,7 +657,6 @@ def test_span_origin( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mock_http_response = create_mock_http_response(EXAMPLE_API_RESPONSE_JSON) @@ -687,7 +685,6 @@ def test_response_without_usage_metadata( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Response without usage metadata @@ -807,7 +804,6 @@ def test_all_configuration_parameters( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mock_http_response = create_mock_http_response(EXAMPLE_API_RESPONSE_JSON) @@ -851,7 +847,6 @@ def test_empty_response( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Minimal response with empty candidates array @@ -885,7 +880,6 @@ def test_response_with_different_id_fields( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Response with response_id and model_version @@ -928,7 +922,6 @@ def test_tool_with_async_function(sentry_init): sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Create an async tool function @@ -1280,7 +1273,6 @@ def test_embed_content_error_handling( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event") @@ -1312,7 +1304,6 @@ def test_embed_content_without_statistics( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Response without statistics (typical for older google-genai versions) @@ -1356,7 +1347,6 @@ def test_embed_content_span_origin( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mock_http_response = create_mock_http_response(EXAMPLE_EMBED_RESPONSE_JSON) @@ -1564,7 +1554,6 @@ async def test_async_embed_content_error_handling( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event") @@ -1597,7 +1586,6 @@ async def test_async_embed_content_without_statistics( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) # Response without statistics (typical for older google-genai versions) @@ -1644,7 +1632,6 @@ async def test_async_embed_content_span_origin( sentry_init( integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, - data_collection={}, ) mock_http_response = create_mock_http_response(EXAMPLE_EMBED_RESPONSE_JSON) diff --git a/tests/integrations/graphene/test_graphene.py b/tests/integrations/graphene/test_graphene.py index 356f781c1f..22f7049978 100644 --- a/tests/integrations/graphene/test_graphene.py +++ b/tests/integrations/graphene/test_graphene.py @@ -128,7 +128,6 @@ def test_no_event_if_no_errors_async(sentry_init, capture_events): FastApiIntegration(), StarletteIntegration(), ], - data_collection={}, ) events = capture_events() @@ -157,7 +156,6 @@ def test_no_event_if_no_errors_sync(sentry_init, capture_events): GrapheneIntegration(), FlaskIntegration(), ], - data_collection={}, ) events = capture_events() @@ -185,7 +183,6 @@ def test_graphql_span_holds_query_information(sentry_init, capture_items): integrations=[GrapheneIntegration(), FlaskIntegration()], traces_sample_rate=1.0, default_integrations=False, - data_collection={}, ) items = capture_items("span") @@ -353,7 +350,6 @@ def test_breadcrumbs_hold_query_information_on_error(sentry_init, capture_items) GrapheneIntegration(), ], default_integrations=False, - data_collection={}, ) items = capture_items("span", "event") diff --git a/tests/integrations/httpx2/test_httpx2.py b/tests/integrations/httpx2/test_httpx2.py index 11f3a4a3e7..2c9b130a84 100644 --- a/tests/integrations/httpx2/test_httpx2.py +++ b/tests/integrations/httpx2/test_httpx2.py @@ -29,7 +29,6 @@ def before_breadcrumb(crumb, hint): sentry_init( integrations=[Httpx2Integration()], before_breadcrumb=before_breadcrumb, - data_collection={}, ) url = "http://example.com/" @@ -72,7 +71,6 @@ def before_breadcrumb(crumb, hint): sentry_init( integrations=[Httpx2Integration()], before_breadcrumb=before_breadcrumb, - data_collection={}, ) url = "http://example.com/" @@ -187,7 +185,6 @@ def test_crumb_capture_client_error_sync( sentry_init( integrations=[Httpx2Integration()], - data_collection={}, ) url = "http://example.com/" @@ -240,7 +237,6 @@ async def test_crumb_capture_client_error_async( sentry_init( integrations=[Httpx2Integration()], - data_collection={}, ) url = "http://example.com/" @@ -1255,7 +1251,6 @@ def test_http_url_attributes_no_query_or_fragment_sync( sentry_init( integrations=[Httpx2Integration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -1285,7 +1280,6 @@ async def test_http_url_attributes_no_query_or_fragment_async( sentry_init( integrations=[Httpx2Integration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") @@ -1575,7 +1569,6 @@ def test_omit_url_data_if_parsing_fails( sentry_init( integrations=[Httpx2Integration()], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("span") diff --git a/tests/integrations/huggingface_hub/test_huggingface_hub.py b/tests/integrations/huggingface_hub/test_huggingface_hub.py index bd0b747c54..d554a7a78e 100644 --- a/tests/integrations/huggingface_hub/test_huggingface_hub.py +++ b/tests/integrations/huggingface_hub/test_huggingface_hub.py @@ -999,7 +999,6 @@ def test_chat_completion_api_error( ) -> None: sentry_init( traces_sample_rate=1.0, - data_collection={}, ) client = InferenceClient(model="test-model", provider="hf-inference") @@ -1060,7 +1059,6 @@ def test_span_status_error( sentry_init( traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event", "span") diff --git a/tests/integrations/langchain/test_langchain.py b/tests/integrations/langchain/test_langchain.py index 7a07b9f255..4e29df7e71 100644 --- a/tests/integrations/langchain/test_langchain.py +++ b/tests/integrations/langchain/test_langchain.py @@ -2088,7 +2088,6 @@ def _llm_type(self) -> str: integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) items = capture_items("event", "span") @@ -2143,7 +2142,6 @@ def test_langchain_tool_error( integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) responses = nonstreaming_responses_tool_call_model_responses( @@ -2246,7 +2244,6 @@ def _identifying_params(self): sentry_init( integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], - data_collection={}, ) # Create a manual SentryLangchainCallback @@ -2287,7 +2284,6 @@ def test_langchain_callback_manager(sentry_init): integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) local_manager = BaseCallbackManager(handlers=[]) @@ -2321,7 +2317,6 @@ def test_langchain_callback_manager_with_sentry_callback(sentry_init): integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) sentry_callback = SentryLangchainCallback() local_manager = BaseCallbackManager(handlers=[sentry_callback]) @@ -2355,7 +2350,6 @@ def test_langchain_callback_list(sentry_init): integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) local_callbacks = [] @@ -2389,7 +2383,6 @@ def test_langchain_callback_list_existing_callback(sentry_init): integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) sentry_callback = SentryLangchainCallback() local_callbacks = [sentry_callback] @@ -2843,7 +2836,6 @@ def test_langchain_ai_system_detection( integrations=[LangchainIntegration()], disabled_integrations=[StdlibIntegration], traces_sample_rate=1.0, - data_collection={}, ) callback = SentryLangchainCallback()