From 09ea3ba41add57c1e6e1d4a4d20358fdce6103ca Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Wed, 23 Sep 2026 13:59:32 +0200 Subject: [PATCH] chore(google-genai): Remove include_prompts parameter --- .../integrations/google_genai/__init__.py | 3 - .../integrations/google_genai/streaming.py | 2 +- sentry_sdk/integrations/google_genai/utils.py | 6 +- .../google_genai/test_google_genai.py | 153 ++++++------------ 4 files changed, 51 insertions(+), 113 deletions(-) diff --git a/sentry_sdk/integrations/google_genai/__init__.py b/sentry_sdk/integrations/google_genai/__init__.py index c97529b7f1..f7a67d6625 100644 --- a/sentry_sdk/integrations/google_genai/__init__.py +++ b/sentry_sdk/integrations/google_genai/__init__.py @@ -40,9 +40,6 @@ class GoogleGenAIIntegration(Integration): identifier = IDENTIFIER origin = ORIGIN - def __init__(self: "GoogleGenAIIntegration", include_prompts: bool = True) -> None: - self.include_prompts = include_prompts - @staticmethod def setup_once() -> None: version = parse_version(GOOGLE_GENAI_VERSION) diff --git a/sentry_sdk/integrations/google_genai/streaming.py b/sentry_sdk/integrations/google_genai/streaming.py index 6ca84fc040..cde266780c 100644 --- a/sentry_sdk/integrations/google_genai/streaming.py +++ b/sentry_sdk/integrations/google_genai/streaming.py @@ -175,7 +175,7 @@ def set_span_data_for_streaming_response( safe_serialize([accumulated_response["text"]]), ) - elif should_send_default_pii() and integration.include_prompts: + elif should_send_default_pii(): span.set_attribute( SPANDATA.GEN_AI_RESPONSE_TEXT, safe_serialize([accumulated_response["text"]]), diff --git a/sentry_sdk/integrations/google_genai/utils.py b/sentry_sdk/integrations/google_genai/utils.py index f33e129761..03081d908b 100644 --- a/sentry_sdk/integrations/google_genai/utils.py +++ b/sentry_sdk/integrations/google_genai/utils.py @@ -940,7 +940,7 @@ def set_span_data_for_request( if has_data_collection_enabled(client.options): if client.options["data_collection"]["gen_ai"]["inputs"]: record_inputs = True - elif should_send_default_pii() and integration.include_prompts: + elif should_send_default_pii(): record_inputs = True if record_inputs: @@ -1061,7 +1061,7 @@ def set_span_data_for_response( span.set_attribute( SPANDATA.GEN_AI_RESPONSE_TEXT, safe_serialize(response_texts) ) - elif should_send_default_pii() and integration.include_prompts: + elif should_send_default_pii(): # TODO: Delete this block once data collection has been completely rolled out response_texts = _extract_response_text(response) if response_texts: @@ -1115,7 +1115,7 @@ def set_span_data_for_embed_request( if has_data_collection_enabled(client.options): if client.options["data_collection"]["gen_ai"]["inputs"]: record_inputs = True - elif should_send_default_pii() and integration.include_prompts: + elif should_send_default_pii(): record_inputs = True if record_inputs: diff --git a/tests/integrations/google_genai/test_google_genai.py b/tests/integrations/google_genai/test_google_genai.py index 08da7d7f95..f2d7d82479 100644 --- a/tests/integrations/google_genai/test_google_genai.py +++ b/tests/integrations/google_genai/test_google_genai.py @@ -115,23 +115,17 @@ def create_test_config( @pytest.mark.parametrize( - "send_default_pii, include_prompts", - [ - (True, True), - (True, False), - (False, True), - (False, False), - ], + "send_default_pii", + [True, False], ) def test_nonstreaming_generate_content( sentry_init, capture_items, send_default_pii, - include_prompts, mock_genai_client, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -167,7 +161,7 @@ def test_nonstreaming_generate_content( assert chat_span["attributes"][SPANDATA.GEN_AI_PROVIDER_NAME] == "gcp.gemini" assert chat_span["attributes"][SPANDATA.GEN_AI_REQUEST_MODEL] == "gemini-1.5-flash" - if send_default_pii and include_prompts: + if send_default_pii: assert json.loads( chat_span["attributes"][SPANDATA.GEN_AI_REQUEST_MESSAGES] ) == [ @@ -241,7 +235,7 @@ def test_generate_content_with_system_instruction( expected_texts, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -273,7 +267,6 @@ def test_generate_content_with_system_instruction( assert SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS not in invoke_span["attributes"] return - # (PII is enabled and include_prompts is True in this test) system_instructions = json.loads( invoke_span["attributes"][SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS] ) @@ -373,7 +366,7 @@ def test_tool_execution( capture_items, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -445,7 +438,7 @@ def test_streaming_generate_content( ): """Test streaming with generate_content_stream, verifying chunk accumulation.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -661,7 +654,7 @@ def test_multiple_candidates( ): """Test handling of multiple response candidates""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -874,7 +867,7 @@ def test_contents_as_none( ): """Test handling when contents parameter is None""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1011,23 +1004,17 @@ def test_tool_calls_extraction( @pytest.mark.parametrize( - "send_default_pii, include_prompts", - [ - (True, True), - (True, False), - (False, True), - (False, False), - ], + "send_default_pii", + [True, False], ) def test_embed_content( sentry_init, capture_items, send_default_pii, - include_prompts, mock_genai_client, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -1065,7 +1052,7 @@ def test_embed_content( ) # Check input texts if PII is allowed - if send_default_pii and include_prompts: + if send_default_pii: input_texts = json.loads( embed_span["attributes"][SPANDATA.GEN_AI_EMBEDDINGS_INPUT] ) @@ -1089,7 +1076,7 @@ def test_embed_content_string_input( ): """Test embed_content with a single string instead of list.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1237,24 +1224,18 @@ def test_embed_content_span_origin( @pytest.mark.asyncio @pytest.mark.parametrize( - "send_default_pii, include_prompts", - [ - (True, True), - (True, False), - (False, True), - (False, False), - ], + "send_default_pii", + [True, False], ) async def test_async_embed_content( sentry_init, capture_items, send_default_pii, - include_prompts, mock_genai_client, ): """Test async embed_content method.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -1292,7 +1273,7 @@ async def test_async_embed_content( ) # Check input texts if PII is allowed - if send_default_pii and include_prompts: + if send_default_pii: input_texts = json.loads( embed_span["attributes"][SPANDATA.GEN_AI_EMBEDDINGS_INPUT] ) @@ -1317,7 +1298,7 @@ async def test_async_embed_content_string_input( ): """Test async embed_content with a single string instead of list.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1480,7 +1461,7 @@ def test_generate_content_with_content_object( ): """Test generate_content with Content object input.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1519,7 +1500,7 @@ def test_generate_content_with_dict_format( ): """Test generate_content with dict format input (ContentDict).""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1556,7 +1537,7 @@ def test_generate_content_with_file_data( ): """Test generate_content with file_data (external file reference).""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1608,7 +1589,7 @@ def test_generate_content_with_inline_data( ): """Test generate_content with inline_data (binary data).""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1654,7 +1635,7 @@ def test_generate_content_with_function_response( ): """Test generate_content with function_response (tool result).""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1712,7 +1693,7 @@ def test_generate_content_with_mixed_string_and_content( ): """Test generate_content with mixed string and Content objects in list.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1759,7 +1740,7 @@ def test_generate_content_with_part_object_directly( ): """Test generate_content with Part object directly (not wrapped in Content).""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1798,7 +1779,7 @@ def test_generate_content_with_list_of_dicts( would be present. """ sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1838,7 +1819,7 @@ def test_generate_content_with_dict_inline_data( ): """Test generate_content with dict format containing inline_data.""" sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1885,7 +1866,7 @@ def test_generate_content_without_parts_property_inline_data( mock_genai_client, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -1930,7 +1911,7 @@ def test_generate_content_without_parts_property_inline_data_and_binary_data_wit mock_genai_client, ): sentry_init( - integrations=[GoogleGenAIIntegration(include_prompts=True)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=True, ) @@ -2312,12 +2293,11 @@ def __init__(self): @pytest.mark.parametrize( - "data_collection,send_default_pii,include_prompts,expected_present,expected_absent", + "data_collection,send_default_pii,expected_present,expected_absent", [ pytest.param( {"gen_ai": {"inputs": True, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2329,7 +2309,6 @@ def __init__(self): pytest.param( {"gen_ai": {"inputs": False, "outputs": False}}, True, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -2341,7 +2320,6 @@ def __init__(self): pytest.param( {"gen_ai": {"inputs": True, "outputs": False}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2354,7 +2332,6 @@ def __init__(self): pytest.param( {"gen_ai": {"inputs": False, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_RESPONSE_TEXT, ], @@ -2367,7 +2344,6 @@ def __init__(self): pytest.param( {"gen_ai": {}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2379,19 +2355,17 @@ def __init__(self): pytest.param( None, True, - True, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, SPANDATA.GEN_AI_RESPONSE_TEXT, ], [], - id="no-gen-ai-config-legacy-pii-and-include-prompts-enabled", + id="no-gen-ai-config-legacy-pii", ), pytest.param( None, False, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -2408,12 +2382,11 @@ def test_generate_content_data_collection( mock_genai_client, data_collection, send_default_pii, - include_prompts, expected_present, expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -2525,7 +2498,7 @@ def test_generate_content_data_collection_tools( expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=False)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -2605,12 +2578,11 @@ def test_generate_content_data_collection_tools( @pytest.mark.parametrize( - "data_collection,send_default_pii,include_prompts,expected_present,expected_absent", + "data_collection,send_default_pii,expected_present,expected_absent", [ pytest.param( {"gen_ai": {"inputs": True, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2622,7 +2594,6 @@ def test_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": False, "outputs": False}}, True, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -2634,7 +2605,6 @@ def test_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": True, "outputs": False}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2647,7 +2617,6 @@ def test_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": False, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_RESPONSE_TEXT, ], @@ -2660,7 +2629,6 @@ def test_generate_content_data_collection_tools( pytest.param( {"gen_ai": {}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -2672,19 +2640,17 @@ def test_generate_content_data_collection_tools( pytest.param( None, True, - True, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, SPANDATA.GEN_AI_RESPONSE_TEXT, ], [], - id="no-gen-ai-config-legacy-pii-and-include-prompts-enabled", + id="no-gen-ai-config-legacy-pii", ), pytest.param( None, False, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -2701,12 +2667,11 @@ def test_streaming_generate_content_data_collection( mock_genai_client, data_collection, send_default_pii, - include_prompts, expected_present, expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -2849,7 +2814,7 @@ def test_streaming_generate_content_data_collection_tools( expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=False)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -2934,12 +2899,11 @@ def test_streaming_generate_content_data_collection_tools( @pytest.mark.parametrize( - "data_collection,send_default_pii,include_prompts,expected_present,expected_absent", + "data_collection,send_default_pii,expected_present,expected_absent", [ pytest.param( {"gen_ai": {"inputs": True, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -2949,7 +2913,6 @@ def test_streaming_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": False, "outputs": False}}, True, - True, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -2959,7 +2922,6 @@ def test_streaming_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": True, "outputs": False}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -2969,7 +2931,6 @@ def test_streaming_generate_content_data_collection_tools( pytest.param( {"gen_ai": {"inputs": False, "outputs": True}}, False, - False, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -2979,7 +2940,6 @@ def test_streaming_generate_content_data_collection_tools( pytest.param( {"gen_ai": {}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -2989,17 +2949,15 @@ def test_streaming_generate_content_data_collection_tools( pytest.param( None, True, - True, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], [], - id="no-gen-ai-config-legacy-pii-and-include-prompts-enabled", + id="no-gen-ai-config-legacy-pii", ), pytest.param( None, False, - True, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -3014,12 +2972,11 @@ def test_embed_content_data_collection( mock_genai_client, data_collection, send_default_pii, - include_prompts, expected_present, expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -3059,12 +3016,11 @@ def test_embed_content_data_collection( @pytest.mark.asyncio @pytest.mark.parametrize( - "data_collection,send_default_pii,include_prompts,expected_present,expected_absent", + "data_collection,send_default_pii,expected_present,expected_absent", [ pytest.param( {"gen_ai": {"inputs": True, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -3076,7 +3032,6 @@ def test_embed_content_data_collection( pytest.param( {"gen_ai": {"inputs": False, "outputs": False}}, True, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -3088,7 +3043,6 @@ def test_embed_content_data_collection( pytest.param( {"gen_ai": {"inputs": True, "outputs": False}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -3101,7 +3055,6 @@ def test_embed_content_data_collection( pytest.param( {"gen_ai": {"inputs": False, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_RESPONSE_TEXT, ], @@ -3114,7 +3067,6 @@ def test_embed_content_data_collection( pytest.param( {"gen_ai": {}}, False, - False, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, @@ -3126,19 +3078,17 @@ def test_embed_content_data_collection( pytest.param( None, True, - True, [ SPANDATA.GEN_AI_REQUEST_MESSAGES, SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS, SPANDATA.GEN_AI_RESPONSE_TEXT, ], [], - id="no-gen-ai-config-legacy-pii-and-include-prompts-enabled", + id="no-gen-ai-config-legacy-pii", ), pytest.param( None, False, - True, [], [ SPANDATA.GEN_AI_REQUEST_MESSAGES, @@ -3155,12 +3105,11 @@ async def test_async_generate_content_data_collection( mock_genai_client, data_collection, send_default_pii, - include_prompts, expected_present, expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, ) @@ -3201,12 +3150,11 @@ async def test_async_generate_content_data_collection( @pytest.mark.asyncio @pytest.mark.parametrize( - "data_collection,send_default_pii,include_prompts,expected_present,expected_absent", + "data_collection,send_default_pii,expected_present,expected_absent", [ pytest.param( {"gen_ai": {"inputs": True, "outputs": True}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -3216,7 +3164,6 @@ async def test_async_generate_content_data_collection( pytest.param( {"gen_ai": {"inputs": False, "outputs": False}}, True, - True, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -3226,7 +3173,6 @@ async def test_async_generate_content_data_collection( pytest.param( {"gen_ai": {"inputs": True, "outputs": False}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -3236,7 +3182,6 @@ async def test_async_generate_content_data_collection( pytest.param( {"gen_ai": {"inputs": False, "outputs": True}}, False, - False, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -3246,7 +3191,6 @@ async def test_async_generate_content_data_collection( pytest.param( {"gen_ai": {}}, False, - False, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], @@ -3256,17 +3200,15 @@ async def test_async_generate_content_data_collection( pytest.param( None, True, - True, [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, ], [], - id="no-gen-ai-config-legacy-pii-and-include-prompts-enabled", + id="no-gen-ai-config-legacy-pii", ), pytest.param( None, False, - True, [], [ SPANDATA.GEN_AI_EMBEDDINGS_INPUT, @@ -3281,12 +3223,11 @@ async def test_async_embed_content_data_collection( mock_genai_client, data_collection, send_default_pii, - include_prompts, expected_present, expected_absent, ): sentry_init_kwargs = dict( - integrations=[GoogleGenAIIntegration(include_prompts=include_prompts)], + integrations=[GoogleGenAIIntegration()], traces_sample_rate=1.0, send_default_pii=send_default_pii, )