function monitorQuotaEvaluationDuration(apiMethod, type, code, duration) {
    monitoring.quotaEvaluationDuration.labels({
        action: apiMethod,
        type,
        code,
    }).observe(duration / 1e9);
}
Monitors the duration of quota evaluation for a specific API method.

@param {string} apiMethod - The name of the API method being monitored.
@param {string} type - The type of quota being evaluated.
@param {string} code - The code associated with the quota being evaluated.
@param {number} duration - The duration of the quota evaluation in nanoseconds.
@returns {undefined} - Returns nothing.