-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Anthropic integration work with Potel #3686
Conversation
❌ 1759 Tests Failed:
View the top 3 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, see suggestion
@@ -165,11 +166,16 @@ def _sentry_patched_create_common(f, *args, **kwargs): | |||
span.set_data(SPANDATA.AI_STREAMING, False) | |||
|
|||
if should_send_default_pii() and integration.include_prompts: | |||
span.set_data(SPANDATA.AI_INPUT_MESSAGES, messages) | |||
span.set_data( | |||
SPANDATA.AI_INPUT_MESSAGES, _serialize_span_attribute(messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe just call _serialize_span_attribute
directly in POTelSpan.set_attribute
? (which set_data
calls under the hood if I'm not mistaken)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Will create a PR for that!
No description provided.