Skip to content

Commit 07d85df

Browse files
anthropic and openai-agents tests
1 parent a629fe2 commit 07d85df

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/integrations/anthropic/test_anthropic.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,6 +3817,7 @@ def test_anthropic_message_truncation(sentry_init, capture_events):
38173817
integrations=[AnthropicIntegration(include_prompts=True)],
38183818
traces_sample_rate=1.0,
38193819
send_default_pii=True,
3820+
stream_gen_ai_spans=False,
38203821
)
38213822
events = capture_events()
38223823

@@ -3869,6 +3870,7 @@ async def test_anthropic_message_truncation_async(sentry_init, capture_events):
38693870
integrations=[AnthropicIntegration(include_prompts=True)],
38703871
traces_sample_rate=1.0,
38713872
send_default_pii=True,
3873+
stream_gen_ai_spans=False,
38723874
)
38733875
events = capture_events()
38743876

@@ -5337,6 +5339,7 @@ def test_message_with_base64_image(sentry_init, capture_events):
53375339
integrations=[AnthropicIntegration(include_prompts=True)],
53385340
traces_sample_rate=1.0,
53395341
send_default_pii=True,
5342+
stream_gen_ai_spans=False,
53405343
)
53415344
events = capture_events()
53425345
client = Anthropic(api_key="z")
@@ -5531,6 +5534,7 @@ def test_message_with_base64_pdf(sentry_init, capture_events):
55315534
integrations=[AnthropicIntegration(include_prompts=True)],
55325535
traces_sample_rate=1.0,
55335536
send_default_pii=True,
5537+
stream_gen_ai_spans=False,
55345538
)
55355539
events = capture_events()
55365540
client = Anthropic(api_key="z")
@@ -5719,6 +5723,7 @@ def test_message_with_mixed_content(sentry_init, capture_events):
57195723
integrations=[AnthropicIntegration(include_prompts=True)],
57205724
traces_sample_rate=1.0,
57215725
send_default_pii=True,
5726+
stream_gen_ai_spans=False,
57225727
)
57235728
events = capture_events()
57245729
client = Anthropic(api_key="z")
@@ -5802,6 +5807,7 @@ def test_message_with_multiple_images_different_formats(sentry_init, capture_eve
58025807
integrations=[AnthropicIntegration(include_prompts=True)],
58035808
traces_sample_rate=1.0,
58045809
send_default_pii=True,
5810+
stream_gen_ai_spans=False,
58055811
)
58065812
events = capture_events()
58075813
client = Anthropic(api_key="z")

tests/integrations/openai_agents/test_openai_agents.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4734,6 +4734,7 @@ def test_openai_agents_message_truncation(sentry_init, capture_items):
47344734
integrations=[OpenAIAgentsIntegration()],
47354735
traces_sample_rate=1.0,
47364736
send_default_pii=True,
4737+
stream_gen_ai_spans=False,
47374738
)
47384739

47394740
test_messages = [

0 commit comments

Comments
 (0)