[PR #1] cleaning

This commit is contained in:
Guillaume Polaert 2017-05-03 10:06:01 +02:00
parent 4cc2b46295
commit 1d388dd433
3 changed files with 2 additions and 2 deletions

View File

@ -80,6 +80,7 @@ public class DDSpan implements io.opentracing.Span {
this.context.getTrace().add(this);
// check DD attributes required
// FIXME Remove IAE
if (this.context.getServiceName() == null) {
throw new IllegalArgumentException("No ServiceName provided");
}

View File

@ -228,10 +228,8 @@ public class DDTracer implements io.opentracing.Tracer {
return context;
}
}
@Override
public String toString() {
return "DDTracer{" +

View File

@ -75,6 +75,7 @@ public class DDAgentWriter implements Writer {
*/
public void write(List<Span> trace) {
//Try to add a new span in the queue
//FIXME oldest?
boolean proceed = tokens.tryAcquire(trace.size());
if (proceed) {