Skip to content

Convert aws 1.11 client tests from groovy to java#12606

Merged
trask merged 8 commits into
open-telemetry:mainfrom
jaydeluca:convert-aws-1.11-client
Nov 12, 2024
Merged

Convert aws 1.11 client tests from groovy to java#12606
trask merged 8 commits into
open-telemetry:mainfrom
jaydeluca:convert-aws-1.11-client

Conversation

@jaydeluca

@jaydeluca jaydeluca commented Nov 10, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
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