Remove conversion from URI to String back to URI
Apply same change as here:
@@ -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
