-
Notifications
You must be signed in to change notification settings - Fork 959
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
Instrument bedrock InvokeModelWithResponseStream #13607
Conversation
@@ -89,28 +89,6 @@ | |||
<property name="tokens" | |||
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/> | |||
</module> | |||
<module name="LeftCurly"> |
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.
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); |
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.
is AnthropicCloud
a typo?
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.
Oops, thanks!
…nstrumentation into bedrock-invoke-model-stream
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.
almost there!
This is the streaming version of
InvokeModel
. After this, there's one PR left to add support for tools withInvokeModel*
and the bedrock instrumentation should be complete./cc @codefromthecrypt