-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to Zipkin 3, Spring Boot 3 and JRE 17 (#209)
This updates server modules to Zipkin 3, Spring Boot 3 and JRE 17. It leaves the client side modules at Java 8. In order to compile the server module, we can no longer compile with JDK 11. See openzipkin/zipkin#3684 Signed-off-by: Adrian Cole <[email protected]> Co-authored-by: Andriy Redko <[email protected]>
- Loading branch information
1 parent
62b971f
commit 6436c86
Showing
32 changed files
with
372 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ class AwsClientTracingTest extends ITRemote { | |
public MockWebServer mockServer = new MockWebServer(); | ||
|
||
@SystemStub | ||
private EnvironmentVariables variables = new EnvironmentVariables(); | ||
private final EnvironmentVariables variables = new EnvironmentVariables(); | ||
private AmazonDynamoDB dbClient; | ||
private AmazonS3 s3Client; | ||
|
||
|
@@ -68,7 +68,7 @@ class AwsClientTracingTest extends ITRemote { | |
.enableForceGlobalBucketAccess()); | ||
} | ||
|
||
@Test void testSpanCreatedAndTagsApplied() throws InterruptedException { | ||
@Test void testSpanCreatedAndTagsApplied() { | ||
mockServer.enqueue(createDeleteItemResponse()); | ||
|
||
dbClient.deleteItem("test", Collections.singletonMap("key", new AttributeValue("value"))); | ||
|
@@ -89,7 +89,7 @@ class AwsClientTracingTest extends ITRemote { | |
AwsClientTracing.create(httpTracing).build(AmazonDynamoDBAsyncClientBuilder.standard()); | ||
} | ||
|
||
@Test void testInternalAwsRequestsDoNotThrowNPE() throws InterruptedException { | ||
@Test void testInternalAwsRequestsDoNotThrowNPE() { | ||
// Responds to the internal HEAD request | ||
mockServer.enqueue(new MockResponse() | ||
.setResponseCode(400) | ||
|
@@ -125,22 +125,23 @@ private MockResponse createDeleteItemResponse() { | |
} | ||
|
||
private MockResponse getExistsResponse() { | ||
return new MockResponse().setBody("<AccessControlPolicy>\n" | ||
+ " <Owner>\n" | ||
+ " <ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>\n" | ||
+ " <DisplayName>[email protected]</DisplayName>\n" | ||
+ " </Owner>\n" | ||
+ " <AccessControlList>\n" | ||
+ " <Grant>\n" | ||
+ " <Grantee xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" | ||
+ "\t\t\txsi:type=\"CanonicalUser\">\n" | ||
+ " <ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>\n" | ||
+ " <DisplayName>[email protected]</DisplayName>\n" | ||
+ " </Grantee>\n" | ||
+ " <Permission>FULL_CONTROL</Permission>\n" | ||
+ " </Grant>\n" | ||
+ " </AccessControlList>\n" | ||
+ "</AccessControlPolicy> ") | ||
return new MockResponse().setBody(""" | ||
<AccessControlPolicy> | ||
<Owner> | ||
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID> | ||
<DisplayName>[email protected]</DisplayName> | ||
</Owner> | ||
<AccessControlList> | ||
<Grant> | ||
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:type="CanonicalUser"> | ||
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID> | ||
<DisplayName>[email protected]</DisplayName> | ||
</Grantee> | ||
<Permission>FULL_CONTROL</Permission> | ||
</Grant> | ||
</AccessControlList> | ||
</AccessControlPolicy>""") | ||
.setResponseCode(200) | ||
.addHeader("x-amz-request-id", "abcd"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.