Compare commits

..

No commits in common. "a14795f347cee8d35835f75cfdaf094a152dbea4" and "69a7016e97900e79caf80800f1ad5064def20b3b" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@navy.gif/wrappers",
"version": "1.7.3",
"version": "1.7.2",
"description": "Various wrapper classes I use in my projects",
"repository": "https://git.corgi.wtf/Navy.gif/wrappers.git",
"author": "Navy.gif",

View File

@ -26,8 +26,7 @@ export type MariaOptions = {
credentials: Credentials,
loggerOptions?: LoggerClientOptions,
donorQuery?: boolean,
recordMetrics?: boolean,
metricsBuckets?: number[],
recordMetrics?: boolean
}
type MariaError = {
@ -248,7 +247,7 @@ class MariaDB
MariaDB.#queryHistogram = new Prometheus.Histogram({
name: 'sql_queries',
help: 'Tracks query duration in seconds and frequency',
buckets: this.#config.metricsBuckets ?? Prometheus?.exponentialBuckets(0.005, 2, 10),
buckets: Prometheus?.exponentialBuckets(0.005, 2, 10),
labelNames: [ 'type' ] as const
});
this.#server.registerMetric(MariaDB.#queryHistogram!);

View File

@ -22,8 +22,7 @@ export type MongoOptions = {
loggerOptions?: LoggerClientOptions,
client?: MongoClientOptions,
load?: boolean,
recordMetrics?: boolean,
metricsBuckets?: number[],
recordMetrics?: boolean
}
type StringIndexable = {[key: string]: boolean | string | number | Document | object}
@ -152,7 +151,7 @@ class MongoDB
MongoDB.#queryHistogram = new Prometheus.Histogram({
name: 'mongo_queries',
help: 'Tracks query duration in seconds and frequency',
buckets: this.#config.metricsBuckets ?? Prometheus?.exponentialBuckets(0.005, 2, 10),
buckets: Prometheus?.exponentialBuckets(0.005, 2, 10),
labelNames: [ 'type' ] as const
});
this.#server.registerMetric(MongoDB.#queryHistogram!);