Remove conversion from URI to String back to URI
MODIFY
instrumentation/aws-java-sdk-1.11/src/main/java/io/opentelemetry/auto/instrumentation/aws/v0/AwsSdkClientDecorator.java
instrumentation/aws-java-sdk-1.11/src/main/java/io/opentelemetry/auto/instrumentation/aws/v0/AwsSdkClientDecorator.java
@@ -9,7 +9,6 @@ import io.opentelemetry.auto.decorator.HttpClientDecorator;
import io.opentelemetry.auto.instrumentation.api.MoreTags;
import io.opentelemetry.trace.Span;
import java.net.URI;
-import java.net.URISyntaxException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -112,8 +111,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 (#191)