public void Transform(ThreadpoolThroughputEventsSample throughputStats) { var metricRequested = _metricBuilder.TryBuildThreadpoolThroughputStatsMetric(ThreadpoolThroughputStatsType.Requested, throughputStats.CountThreadRequestsQueued); var metricStarted = _metricBuilder.TryBuildThreadpoolThroughputStatsMetric(ThreadpoolThroughputStatsType.Started, throughputStats.CountThreadRequestsDequeued); var metricQueueLength = _metricBuilder.TryBuildThreadpoolThroughputStatsMetric(ThreadpoolThroughputStatsType.QueueLength, throughputStats.ThreadRequestQueueLength); RecordMetrics(metricRequested, metricStarted, metricQueueLength); }