use of org.apache.hc.client5.http.classic.methods.HttpPut in project metrics by dropwizard.
the class HttpClientMetricNameStrategiesTest method querylessUrlAndMethodWithNameInWrappedRequest.
@Test
public void querylessUrlAndMethodWithNameInWrappedRequest() throws URISyntaxException {
HttpRequest request = rewriteRequestURI(new HttpPut("https://thing.com:8090/my/path?ignore=this&and=this"));
assertThat(QUERYLESS_URL_AND_METHOD.getNameFor("some-service", request), is("org.apache.hc.client5.http.classic.HttpClient.some-service.https://thing.com:8090/my/path.put-requests"));
}
Aggregations