[core] cosmetics

This commit is contained in:
Guillaume Polaert 2017-08-01 13:33:33 +02:00 committed by Emanuele Palazzetti
parent 90b817283a
commit 402e4978e2
5 changed files with 5 additions and 7 deletions

View File

@ -4,10 +4,9 @@ import com.datadoghq.trace.integration.AbstractDecorator;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
import io.opentracing.tag.Tags; import io.opentracing.tag.Tags;
import lombok.extern.slf4j.Slf4j;
import java.util.*; import java.util.*;
import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentLinkedQueue;
import lombok.extern.slf4j.Slf4j;
/** /**
* SpanContext represents Span state that must propagate to descendant Spans and across process * SpanContext represents Span state that must propagate to descendant Spans and across process

View File

@ -12,7 +12,6 @@ public class DBStatementAsResourceName extends AbstractDecorator {
this.setSetTag(DDTags.RESOURCE_NAME); this.setSetTag(DDTags.RESOURCE_NAME);
} }
@Override @Override
public boolean afterSetTag(final DDSpanContext context, final String tag, final Object value) { public boolean afterSetTag(final DDSpanContext context, final String tag, final Object value) {
//Assign service name //Assign service name

View File

@ -66,7 +66,7 @@ class SpanDecoratorTest extends Specification {
then: then:
span.getOperationName() == type + ".query" span.getOperationName() == type + ".query"
span.context().getSpanType() == "db" span.context().getSpanType() == "sql"
where: where:
type = "foo" type = "foo"