[example] change dropwizard names and package
This commit is contained in:
parent
abaf24451f
commit
924b1d5537
|
@ -1,14 +1,14 @@
|
|||
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
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.helloworld.api;
|
||||
package com.datadoghq.example.dropwizard.api;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import org.bson.Document;
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.helloworld.client;
|
||||
package com.datadoghq.example.dropwizard.client;
|
||||
|
||||
import com.datadoghq.trace.Trace;
|
||||
import io.opentracing.tag.StringTag;
|
|
@ -1,7 +1,7 @@
|
|||
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;
|
|
@ -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", ...]
|
||||
|
|
Loading…
Reference in New Issue