Fix name: timestampMillis -> timestampMicroseconds
This commit is contained in:
parent
c6ad6cbf3f
commit
01c707787f
|
@ -330,7 +330,7 @@ public class DDTracer implements io.opentracing.Tracer {
|
||||||
// Builder attributes
|
// Builder attributes
|
||||||
private Map<String, Object> tags =
|
private Map<String, Object> tags =
|
||||||
spanTags.isEmpty() ? Collections.<String, Object>emptyMap() : Maps.newHashMap(spanTags);
|
spanTags.isEmpty() ? Collections.<String, Object>emptyMap() : Maps.newHashMap(spanTags);
|
||||||
private long timestamp;
|
private long timestampMicro;
|
||||||
private SpanContext parent;
|
private SpanContext parent;
|
||||||
private String serviceName;
|
private String serviceName;
|
||||||
private String resourceName;
|
private String resourceName;
|
||||||
|
@ -350,7 +350,7 @@ public class DDTracer implements io.opentracing.Tracer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private DDSpan startSpan() {
|
private DDSpan startSpan() {
|
||||||
final DDSpan span = new DDSpan(this.timestamp, buildSpanContext());
|
final DDSpan span = new DDSpan(this.timestampMicro, buildSpanContext());
|
||||||
if (DDTracer.this.sampler instanceof RateByServiceSampler) {
|
if (DDTracer.this.sampler instanceof RateByServiceSampler) {
|
||||||
((RateByServiceSampler) DDTracer.this.sampler).initializeSamplingPriority(span);
|
((RateByServiceSampler) DDTracer.this.sampler).initializeSamplingPriority(span);
|
||||||
}
|
}
|
||||||
|
@ -402,8 +402,8 @@ public class DDTracer implements io.opentracing.Tracer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DDSpanBuilder withStartTimestamp(final long timestampMillis) {
|
public DDSpanBuilder withStartTimestamp(final long timestampMicroseconds) {
|
||||||
this.timestamp = timestampMillis;
|
this.timestampMicro = timestampMicroseconds;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue