[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.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());
}
}
}

View File

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

View File

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