mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[clsi] minor fixes for clsi-cache (#30551)
* [clsi] fix circuit breaker for clsi-cache * [clsi] enable ts-check for CLSICacheHandler * [clsi] limit the number of .blg files in clsi-cache to 50 * [clsi-cache] limit the number of files per job to 100 * [clsi-cache] explain early registration of buildId * [clsi-cache] lock down downloads via nginx to project folder GitOrigin-RevId: 081d0c40b08db3a384c4d765b71a50b973f42151
This commit is contained in:
@@ -97,6 +97,12 @@ function histogram(key, value, buckets, labels = {}) {
|
||||
}
|
||||
|
||||
class Timer {
|
||||
/**
|
||||
* @param {string} key
|
||||
* @param {number} sampleRate
|
||||
* @param {Record<string, any>} labels
|
||||
* @param {Array<number>} buckets
|
||||
*/
|
||||
constructor(key, sampleRate = 1, labels = {}, buckets = undefined) {
|
||||
if (typeof sampleRate === 'object') {
|
||||
// called with (key, labels, buckets)
|
||||
|
||||
Reference in New Issue
Block a user