[core] cosmetics
This commit is contained in:
parent
90b817283a
commit
402e4978e2
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue