Skip to content

Commit

Permalink
Fix Activity Start Time Precision (#45175)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh committed Nov 25, 2020
1 parent fa367a3 commit fe80a77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ public void SetCustomProperty(string propertyName, object? propertyValue)
}
}

activity.StartTimeUtc = startTime == default ? DateTime.UtcNow : startTime.UtcDateTime;
activity.StartTimeUtc = startTime == default ? GetUtcNow() : startTime.UtcDateTime;

activity.IsAllDataRequested = request == ActivitySamplingResult.AllData || request == ActivitySamplingResult.AllDataAndRecorded;

Expand Down

0 comments on commit fe80a77

Please sign in to comment.