public override void AddMetricStats(Segment segment, TimeSpan durationOfChildren, TransactionMetricStatsCollection txStats, IConfigurationService configService) { var duration = segment.Duration.Value; var exclusiveDuration = TimeSpanMath.Max(TimeSpan.Zero, duration - durationOfChildren); MetricBuilder.TryBuildCustomSegmentMetrics(Name, duration, exclusiveDuration, txStats); }