fixing little things after the review
MODIFY
dd-trace/src/main/java/com/datadoghq/trace/integration/URLAsResourceName.java
dd-trace/src/main/java/com/datadoghq/trace/integration/URLAsResourceName.java
@@ -54,7 +54,7 @@ public class URLAsResourceName extends AbstractDecorator {
path = norm(path);
final String verb = (String) context.getTags().get(Tags.HTTP_METHOD.getKey());
if (verb != null && !verb.isEmpty()) {
- path = verb + "-" + path;
+ path = verb + " " + path;
}
context.setResourceName(path);
} catch (final Throwable e) {

MODIFY
dd-trace/src/test/groovy/com/datadoghq/trace/integration/URLAsResourceNameTest.groovy
dd-trace/src/test/groovy/com/datadoghq/trace/integration/URLAsResourceNameTest.groovy
@@ -35,8 +35,8 @@ class URLAsResourceNameTest extends Specification {
norm == output
where:
- input << ["http://sdsdfsdfdsfsd?dasdas?das"]
- output << ["http://sdsdfsdfdsfsd"]
+ input << ["/aaaaa?bbb=111&ccc=foo"]
+ output << ["/aaaaa"]
}
@@ -73,8 +73,8 @@ class URLAsResourceNameTest extends Specification {
norm == output
where:
- input << ["http://www.example.com/users/guillaume/list_repository/"]
- output << ["http://www.example.com/users/:id/list_repository/"]
+ input << ["/users/guillaume/list_repository/"]
+ output << ["/users/:id/list_repository/"]
}

fixing little things after the review