Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Convert time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqi0805 committed Oct 19, 2020
1 parent a521599 commit 9825bd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public static Span sourceToSpan(final Map<String, Object> source) {
final Integer statusCode = extractStatusCodeFromTags(tags);

final Span.Builder spanBuilder = Span.newBuilder()
.setStartTimeUnixNano(startTime)
.setEndTimeUnixNano(endTime);
.setStartTimeUnixNano(startTime * 1000) // Convert to UnixNano
.setEndTimeUnixNano(endTime * 1000); // Convert to UnixNano

if (traceID != null) {
spanBuilder.setTraceId(ByteString.copyFromUtf8(traceID));
Expand Down

0 comments on commit 9825bd3

Please sign in to comment.