You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but if I remove the labelNames param, I get this error when starting the application
TypeError: Cannot read property 'forEach' of undefined
at validateInput (/home/matheus/node_modules/@digikare/nestjs-prom/node_modules/prom-client/lib/histogram.js:166:9)
at new Histogram (/home/matheus/node_modules/@digikare/nestjs-prom/node_modules/prom-client/lib/histogram.js:44:3)
at findOrCreateMetric (/home/matheus/node_modules/@digikare/nestjs-prom/dist/common/prom.utils.js:50:20)
at Object.findOrCreateHistogram (/home/matheus/node_modules/@digikare/nestjs-prom/dist/common/prom.utils.js:87:12)
at PromService.getHistogram (/home/matheus/node_modules/@digikare/nestjs-prom/dist/prom.service.js:26:29)
And if I remove the buckets param, I get this error
TypeError: Cannot read property 'reduce' of undefined
at new Histogram (/home/matheus/node_modules/@digikare/nestjs-prom/node_modules/prom-client/lib/histogram.js:51:40)
at findOrCreateMetric (/home/matheus/node_modules/@digikare/nestjs-prom/dist/common/prom.utils.js:50:20)
at Object.findOrCreateHistogram (/home/matheus/node_modules/@digikare/nestjs-prom/dist/common/prom.utils.js:87:12)
at PromService.getHistogram (/home/matheus/node_modules/@digikare/nestjs-prom/dist/prom.service.js:26:29)
I'm trying to remove these params because the IHistogramMetricArguments says they are not required.
I get the same issue. It seems to be that [email protected] introduced these breaking changes. Looking at the source ^13 might be a fix to the issue but I haven't tested it yet.
I have the following histogram
but if I remove the
labelNames
param, I get this error when starting the applicationAnd if I remove the
buckets
param, I get this errorI'm trying to remove these params because the
IHistogramMetricArguments
says they are not required.I'm using version 1.0.0
The text was updated successfully, but these errors were encountered: