Skip to content

Commit 40d3fb9

Browse files
ref(anthropic): Drop support for stream_gen_ai_spans (#7350)
1 parent 341fd03 commit 40d3fb9

2 files changed

Lines changed: 158 additions & 1699 deletions

File tree

sentry_sdk/integrations/anthropic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from sentry_sdk.tracing import Span
2222
from sentry_sdk.tracing_utils import (
2323
has_span_streaming_enabled,
24-
should_truncate_gen_ai_input,
2524
)
2625
from sentry_sdk.utils import (
2726
capture_internal_exceptions,
@@ -558,7 +557,7 @@ def _set_common_input_data(
558557
scope = sentry_sdk.get_current_scope()
559558
messages_data = (
560559
truncate_and_annotate_messages(role_normalized_messages, span, scope)
561-
if should_truncate_gen_ai_input(client.options)
560+
if not has_span_streaming_enabled(client.options)
562561
else role_normalized_messages
563562
)
564563
if messages_data is not None:

0 commit comments

Comments
 (0)