class ThreadMetrics {

    public static Sensor processLatencySensor(final String threadId,
                                              final StreamsMetricsImpl streamsMetrics) {
        final Sensor sensor =
            streamsMetrics.threadLevelSensor(threadId, PROCESS + LATENCY_SUFFIX, RecordingLevel.INFO);
        final Map<String, String> tagMap = streamsMetrics.threadLevelTagMap(threadId);
        final String threadLevelGroup = threadLevelGroup(streamsMetrics);
        addAvgAndMaxToSensor(
            sensor,
            threadLevelGroup,
            tagMap,
            PROCESS + LATENCY_SUFFIX,
            PROCESS_AVG_LATENCY_DESCRIPTION,
            PROCESS_MAX_LATENCY_DESCRIPTION
        );
        return sensor;
    }

    private  ThreadMetrics();

}