Change the span duration of a benchmark test to the mean duration. (#914)

This commit is contained in:
Tony Redondo 2020-09-09 10:36:59 +02:00 committed by GitHub
parent d43c04c91d
commit b19bea4751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ namespace Datadog.Trace.BenchmarkDotNet
span.SetMetric("benchmark.statistics.p99", stats.Percentiles.Percentile(99));
}
durationNanoseconds = stats.N * stats.Mean;
durationNanoseconds = stats.Mean;
}
if (report.Metrics != null)