Skip to content

Instrument bedrock InvokeModelWithResponseStream #13607

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

Merged
merged 3 commits into from
Apr 9, 2025

Conversation

anuraaga
Copy link
Contributor

This is the streaming version of InvokeModel. After this, there's one PR left to add support for tools with InvokeModel* and the bedrock instrumentation should be complete.

/cc @codefromthecrypt

@anuraaga anuraaga requested a review from a team as a code owner March 28, 2025 03:47
@@ -89,28 +89,6 @@
<property name="tokens"
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
</module>
<module name="LeftCurly">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This checkstyle rule conflicts with spotless formatting of case blocks. I just removed it, and perhaps other formatting-related ones can be removed as well later since they're at best redundant with spotless and at worse may conflict.

} else if (requestModel.startsWith("amazon.nova")) {
handleEventAmazonNova(result);
} else if (requestModel.startsWith("anthropic.claude")) {
handleEventAnthropicCloud(result);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is AnthropicCloud a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thanks!

@laurit laurit added this to the v2.15.0 milestone Apr 7, 2025
Copy link

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost there!

@trask trask merged commit a6dacb3 into open-telemetry:main Apr 9, 2025
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants