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

Convert aws 1.11 client tests from groovy to java #12606

Merged
merged 8 commits into from
Nov 12, 2024

Conversation

jaydeluca
Copy link
Member

@jaydeluca jaydeluca commented Nov 10, 2024

Related to #7195

Comment on lines 190 to 198
try {
span.hasException(
new AmazonClientException("Unable to execute HTTP request"));
} catch (AssertionError e) {
span.hasException(
new SdkClientException(
"Unable to execute HTTP request: Request did not complete before the request timeout configuration."));
}
}));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know when it gets which exception? If the exception depends on whether it is regular or latest dep test then we could simplify this and the ERROR_TYPE assertion.

Copy link
Member Author

Choose a reason for hiding this comment

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

seems like its always SdkClientException, so I was able to simplify. great catch!

@trask trask merged commit ad21efb into open-telemetry:main Nov 12, 2024
56 checks passed
akats7 pushed a commit to akats7/opentelemetry-java-instrumentation that referenced this pull request Nov 21, 2024
akats7 pushed a commit to akats7/opentelemetry-java-instrumentation that referenced this pull request Nov 21, 2024
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