public void Transform(ThreadpoolUsageStatsSample threadpoolStats) { var workerThreadsAvail = _metricBuilder.TryBuildThreadpoolUsageStatsMetric(ThreadType.Worker, ThreadStatus.Available, threadpoolStats.WorkerCountThreadsAvail); var workerThreadsUsed = _metricBuilder.TryBuildThreadpoolUsageStatsMetric(ThreadType.Worker, ThreadStatus.InUse, threadpoolStats.WorkerCountThreadsUsed); var completionThreadsAvail = _metricBuilder.TryBuildThreadpoolUsageStatsMetric(ThreadType.Completion, ThreadStatus.Available, threadpoolStats.CompletionCountThreadsAvail); var completionThreadsUsed = _metricBuilder.TryBuildThreadpoolUsageStatsMetric(ThreadType.Completion, ThreadStatus.InUse, threadpoolStats.CompletionCountThreadsUsed); RecordMetrics(workerThreadsAvail, workerThreadsUsed, completionThreadsAvail, completionThreadsUsed); }