[example] change dropwizard names and package
RENAME
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/example/helloworld/HelloWorldApplication.java
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/datadoghq/example/dropwizard/BookApplication.java
-package com.example.helloworld;
+package com.datadoghq.example.dropwizard;
-import com.example.helloworld.resources.SimpleCrudResource;
+import com.datadoghq.example.dropwizard.resources.SimpleCrudResource;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
-public class HelloWorldApplication extends Application<Configuration> {
+public class BookApplication extends Application<Configuration> {
public static void main(String[] args) throws Exception {
- new HelloWorldApplication().run(args);
+ new BookApplication().run(args);
}
@Override

RENAME
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/example/helloworld/api/Book.java
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/datadoghq/example/dropwizard/api/Book.java
-package com.example.helloworld.api;
+package com.datadoghq.example.dropwizard.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.bson.Document;

RENAME
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/example/helloworld/client/TracedClient.java
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/datadoghq/example/dropwizard/client/TracedClient.java
-package com.example.helloworld.client;
+package com.datadoghq.example.dropwizard.client;
import com.datadoghq.trace.Trace;
import io.opentracing.tag.StringTag;

RENAME
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/example/helloworld/resources/SimpleCrudResource.java
dd-trace-examples/dropwizard-mongo-client/src/main/java/com/datadoghq/example/dropwizard/resources/SimpleCrudResource.java
-package com.example.helloworld.resources;
+package com.datadoghq.example.dropwizard.resources;
import com.datadoghq.trace.Trace;
-import com.example.helloworld.api.Book;
+import com.datadoghq.example.dropwizard.api.Book;
import com.google.common.base.Optional;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCursor;

MODIFY
dd-trace-examples/dropwizard-mongo-client/src/main/resources/dd-trace.yaml
dd-trace-examples/dropwizard-mongo-client/src/main/resources/dd-trace.yaml
@@ -23,7 +23,7 @@ sampler:
# skipTagsPatterns: {"http.url": ".*/demo/add.*"}
# Enable custom annotation tracing over a selected set of packages
-enableCustomAnnotationTracingOver: ["com.example"]
+enableCustomAnnotationTracingOver: ["com.datadoghq.example"]
# Disable some instrumentations
# disabledInstrumentations: ["apache http", "mongo", "jetty", "tomcat", ...]

[example] change dropwizard names and package