[PR cleaning
MODIFY
src/main/java/com/datadoghq/trace/impl/DDSpan.java
src/main/java/com/datadoghq/trace/impl/DDSpan.java
@@ -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");
}

MODIFY
src/main/java/com/datadoghq/trace/impl/DDTracer.java
src/main/java/com/datadoghq/trace/impl/DDTracer.java
@@ -228,10 +228,8 @@ public class DDTracer implements io.opentracing.Tracer {
return context;
}
-
}
-
@Override
public String toString() {
return "DDTracer{" +

MODIFY
src/main/java/com/datadoghq/trace/writer/impl/DDAgentWriter.java
src/main/java/com/datadoghq/trace/writer/impl/DDAgentWriter.java
@@ -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) {

[PR #1] cleaning