Minor CR fixes.
MODIFY
dd-java-agent/instrumentation/grizzly-2/src/main/java/datadog/trace/instrumentation/grizzly/GrizzlyDecorator.java
dd-java-agent/instrumentation/grizzly-2/src/main/java/datadog/trace/instrumentation/grizzly/GrizzlyDecorator.java
@@ -41,11 +41,11 @@ public class GrizzlyDecorator extends HttpServerDecorator<Request, Request, Resp
@Override
protected String[] instrumentationNames() {
- return new String[] {"jersey"};
+ return new String[] {"grizzly"};
}
@Override
protected String component() {
- return "jersey";
+ return "grizzly";
}
}

MODIFY
dd-java-agent/instrumentation/grizzly-2/src/test/groovy/GrizzlyAsyncTest.groovy
dd-java-agent/instrumentation/grizzly-2/src/test/groovy/GrizzlyAsyncTest.groovy
@@ -24,12 +24,12 @@ class GrizzlyAsyncTest extends GrizzlyTest {
HttpServer startServer(int port) {
ResourceConfig rc = new ResourceConfig()
rc.register(SimpleExceptionMapper)
- rc.register(ServiceResource)
+ rc.register(AsyncServiceResource)
GrizzlyHttpServerFactory.createHttpServer(new URI("http://localhost:$port"), rc)
}
@Path("/")
- static class ServiceResource {
+ static class AsyncServiceResource {
private ExecutorService executor = Executors.newSingleThreadExecutor()
@GET

Minor CR fixes.