[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.google.common.collect.Maps;
|
||||
import io.opentracing.tag.Tags;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* SpanContext represents Span state that must propagate to descendant Spans and across process
|
||||
|
@ -201,9 +200,9 @@ public class DDSpanContext implements io.opentracing.SpanContext {
|
|||
decorator.afterSetTag(this, tag, value);
|
||||
} catch (final Throwable ex) {
|
||||
log.warn(
|
||||
"Could not decorate the span decorator={}: {}",
|
||||
decorator.getClass().getSimpleName(),
|
||||
ex.getMessage());
|
||||
"Could not decorate the span decorator={}: {}",
|
||||
decorator.getClass().getSimpleName(),
|
||||
ex.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ public class DBStatementAsResourceName extends AbstractDecorator {
|
|||
this.setSetTag(DDTags.RESOURCE_NAME);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean afterSetTag(final DDSpanContext context, final String tag, final Object value) {
|
||||
//Assign service name
|
||||
|
|
|
@ -66,7 +66,7 @@ class SpanDecoratorTest extends Specification {
|
|||
|
||||
then:
|
||||
span.getOperationName() == type + ".query"
|
||||
span.context().getSpanType() == "db"
|
||||
span.context().getSpanType() == "sql"
|
||||
|
||||
where:
|
||||
type = "foo"
|
||||
|
|
Loading…
Reference in New Issue