Skip to content

Convert aws sdk tests for before 1.11.106 from groovy to java#12755

Merged
trask merged 3 commits into
open-telemetry:mainfrom
jaydeluca:convert-aws-1.11-before-1-11
Nov 20, 2024
Merged

Convert aws sdk tests for before 1.11.106 from groovy to java#12755
trask merged 3 commits into
open-telemetry:mainfrom
jaydeluca:convert-aws-1.11-before-1-11

Conversation

@jaydeluca

Copy link
Copy Markdown
Member

Related to #7195

@jaydeluca jaydeluca requested a review from a team as a code owner November 20, 2024 01:24
@jaydeluca jaydeluca force-pushed the convert-aws-1.11-before-1-11 branch from 4509288 to 0eae90c Compare November 20, 2024 01:32
@RegisterExtension
private static final InstrumentationExtension testing = AgentInstrumentationExtension.create();

private static final AWSCredentialsProviderChain credentialsProvider =

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.

Use upper case here and keep same with groovy version? https://google.github.io/styleguide/javaguide.html#s5.2.4-constant-names

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.

quoting from google style guide linked by @steverao

Constants are static final fields whose contents are deeply immutable and whose methods have no detectable side effects. Examples include primitives, strings, immutable value classes, and anything set to null. If any of the instance's observable state can change, it is not a constant.

according of the above google style guide does not consider this field to be a constant

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.

Thanks for the reminder from @laurit. After careful consideration, it is reasonable not to set it as a constant. Since it is modified, I think it is OK to use constant like now or keep it as it is.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jaydeluca I'd suggest sticking with lowercase, I think we've used the language @laurit cited above previously

}

@Test
void testNaughtyRequestHandlerDoesntBreakTheTrace() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

😆

@trask trask merged commit bd49adf into open-telemetry:main Nov 20, 2024
Abhishekkr3003 pushed a commit to Abhishekkr3003/opentelemetry-java-instrumentation that referenced this pull request Nov 26, 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