[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);
|
||||
|
||||
// check DD attributes required
|
||||
// FIXME Remove IAE
|
||||
if (this.context.getServiceName() == null) {
|
||||
throw new IllegalArgumentException("No ServiceName provided");
|
||||
}
|
||||
|
|
|
@ -228,10 +228,8 @@ public class DDTracer implements io.opentracing.Tracer {
|
|||
return context;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DDTracer{" +
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue