[example] change dropwizard names and package

This commit is contained in:
Emanuele Palazzetti 2017-08-04 13:25:24 +02:00
parent abaf24451f
commit 924b1d5537
No known key found for this signature in database
GPG Key ID: F4D8F69FEF18A502
5 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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", ...]