Remove conversion from URI to String back to URI
@@ -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
