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

botocore: handle exceptions when consuming streaming versions of bedrock APIs #3211

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Jan 27, 2025

Description

Add handling of exceptions when consuming the EventStream for both ConverseStream and InvokeModelWithStreamResponse.
Please note the exception is manually injected and has not been recorded.

Refs #3210

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox -e py310-test-instrumentation-botocore-1

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx requested a review from a team as a code owner January 27, 2025 12:45
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 27, 2025
@xrmx xrmx force-pushed the error-handling-for-streaming branch 2 times, most recently from 8da2e26 to 5fde615 Compare January 27, 2025 13:56
@xrmx xrmx force-pushed the error-handling-for-streaming branch from 5fde615 to 388fd0d Compare January 28, 2025 08:57
Copy link

@kakaly kakaly left a comment

Choose a reason for hiding this comment

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

looks good to me

Copy link
Contributor

@karthikscale3 karthikscale3 left a comment

Choose a reason for hiding this comment

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

looks good to me

@xrmx xrmx enabled auto-merge (squash) January 28, 2025 19:49
@xrmx xrmx merged commit 44754e2 into open-telemetry:main Jan 28, 2025
694 checks passed
Copy link
Contributor

@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.

late review I was going to after the other PRs merged, but pleasantly well this is merged before had the change.

👍

I like both the suggestion to to this and also the doing it. Keep up the velocity!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants