Remove conversion from URI to String back to URI
Apply same change as here:
MODIFY
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/AwsSdkClientDecorator.java
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/main/java/datadog/trace/instrumentation/aws/v0/AwsSdkClientDecorator.java
@@ -9,7 +9,6 @@ import datadog.trace.api.DDTags;
import datadog.trace.bootstrap.ContextStore;
import datadog.trace.bootstrap.instrumentation.api.AgentSpan;
import java.net.URI;
-import java.net.URISyntaxException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -102,8 +101,8 @@ public class AwsSdkClientDecorator extends HttpClientDecorator<Request, Response
}
@Override
- protected URI url(final Request request) throws URISyntaxException {
- return new URI(request.getEndpoint().toString());
+ protected URI url(final Request request) {
+ return request.getEndpoint();
}
@Override

Remove conversion from URI to String back to URI

Apply same change as here: https://github.com/open-telemetry/opentelemetry-auto-instr-java/pull/191