Skip to content
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

Merged
merged 9 commits into from
Nov 5, 2024

Conversation

antonpirker
Copy link
Member

No description provided.

@antonpirker antonpirker self-assigned this Oct 23, 2024
@antonpirker antonpirker changed the base branch from master to potel-base October 23, 2024 11:36
Copy link

codecov bot commented Oct 23, 2024

❌ 1759 Tests Failed:

Tests completed Failed Passed Skipped
19678 1759 17919 4400
View the top 3 failed tests by shortest run time
tests.integrations.litestar.test_litestar test_middleware_partial_receive_send
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_span_origin
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_span_origin
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@antonpirker antonpirker marked this pull request as ready for review November 5, 2024 12:30
Copy link
Contributor

@sentrivana sentrivana left a 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)
Copy link
Contributor

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)

Copy link
Member Author

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!

@antonpirker antonpirker merged commit 0ffc5cd into potel-base Nov 5, 2024
25 of 125 checks passed
@antonpirker antonpirker deleted the antonpirker/potel/anthropic branch November 5, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants