[PR #1] cleaning
This commit is contained in:
parent
4cc2b46295
commit
1d388dd433
|
@ -80,6 +80,7 @@ public class DDSpan implements io.opentracing.Span {
|
||||||
this.context.getTrace().add(this);
|
this.context.getTrace().add(this);
|
||||||
|
|
||||||
// check DD attributes required
|
// check DD attributes required
|
||||||
|
// FIXME Remove IAE
|
||||||
if (this.context.getServiceName() == null) {
|
if (this.context.getServiceName() == null) {
|
||||||
throw new IllegalArgumentException("No ServiceName provided");
|
throw new IllegalArgumentException("No ServiceName provided");
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,10 +228,8 @@ public class DDTracer implements io.opentracing.Tracer {
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "DDTracer{" +
|
return "DDTracer{" +
|
||||||
|
|
|
@ -75,6 +75,7 @@ public class DDAgentWriter implements Writer {
|
||||||
*/
|
*/
|
||||||
public void write(List<Span> trace) {
|
public void write(List<Span> trace) {
|
||||||
//Try to add a new span in the queue
|
//Try to add a new span in the queue
|
||||||
|
//FIXME oldest?
|
||||||
boolean proceed = tokens.tryAcquire(trace.size());
|
boolean proceed = tokens.tryAcquire(trace.size());
|
||||||
|
|
||||||
if (proceed) {
|
if (proceed) {
|
||||||
|
|
Loading…
Reference in New Issue