Fix name: timestampMillis -> timestampMicroseconds

This commit is contained in:
Andrew Kent 2018-04-10 15:14:37 -07:00
parent c6ad6cbf3f
commit 01c707787f
1 changed files with 4 additions and 4 deletions

View File

@ -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;
} }