@envelop/prometheus
Advanced tools
Comparing version 11.0.0-alpha-20240729080841-2ef796b2 to 11.0.0-alpha-20240729092544-f8b6dbe5
@@ -95,3 +95,3 @@ "use strict"; | ||
exports.createCounter = createCounter; | ||
function getHistogramFromConfig(config, phase, histogram, fillLabelsFn = params => filterFillParamsFnParams(config, { | ||
function getHistogramFromConfig(config, phase, histogram, fillLabelsFn = params => ({ | ||
operationName: params.operationName, | ||
@@ -111,3 +111,3 @@ operationType: params.operationType, | ||
}, | ||
fillLabelsFn, | ||
fillLabelsFn: (...args) => filterFillParamsFnParams(config, fillLabelsFn(...args)), | ||
}) | ||
@@ -114,0 +114,0 @@ : undefined; |
@@ -84,3 +84,3 @@ import { visit, visitWithTypeInfo, } from 'graphql'; | ||
} | ||
export function getHistogramFromConfig(config, phase, histogram, fillLabelsFn = params => filterFillParamsFnParams(config, { | ||
export function getHistogramFromConfig(config, phase, histogram, fillLabelsFn = params => ({ | ||
operationName: params.operationName, | ||
@@ -100,3 +100,3 @@ operationType: params.operationType, | ||
}, | ||
fillLabelsFn, | ||
fillLabelsFn: (...args) => filterFillParamsFnParams(config, fillLabelsFn(...args)), | ||
}) | ||
@@ -103,0 +103,0 @@ : undefined; |
{ | ||
"name": "@envelop/prometheus", | ||
"version": "11.0.0-alpha-20240729080841-2ef796b2", | ||
"version": "11.0.0-alpha-20240729092544-f8b6dbe5", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
67609