Comments (8)
That is great, thanks again
from nestjs-prometheus.
@lehno Sorry for the delay. Released as v2.0.1. Please let me know if it works.
from nestjs-prometheus.
@lehno can you npm i @types/express --save-dev
?
from nestjs-prometheus.
Do I need to use @types/express even when using Fastify?
from nestjs-prometheus.
Because I wrote the controller using express
's response, they would be needed yeah. I can probably rewrite it so it doesn't require one vs the other.
Do you happen to have skipLibCheck
enabled in your tsconfig
?
from nestjs-prometheus.
I don't have skipLibCheck enabled. Using all default values from NestJS and changed Express to Fastify for performance.
Tks for the explanation
from nestjs-prometheus.
As a workaround, I would suggest enabling skipLibCheck
since I believe it makes it so your application won't have an issue if there are typings issues in other people's libraries (like this case).
I have marked this as a bug though since I don't think it's reasonable for people to have to install typings for express if they aren't using it OR have to tweak their tsconfig settings to use this library.
I'll try and get a fix out in the next few days.
from nestjs-prometheus.
I will test soon
from nestjs-prometheus.
Related Issues (20)
- Add support for Pushgateway HOT 1
- Graphql usage. HOT 3
- Use Gauge with collect HOT 4
- how to use with prometheus-gc-stats HOT 1
- how do you inject Pushgateway? HOT 5
- Invalid number of arguments, expected 1..2 HOT 1
- Very long NodeJS event loop lag HOT 2
- NestJS Monorepo app returns 404 error HOT 1
- TypeScript error "Unable to resolve signature of parameter decorator when called as an expression" HOT 13
- Issues adding to grafana HOT 3
- http_request_xxx HOT 1
- add support for nestjs v10 HOT 1
- How to inject app/custom dependencies into PrometheusModule HOT 6
- I can't push with pushgateway HOT 15
- Make it possible to inject a dependency into collect function HOT 3
- Metrics not being computed when the application is forked into a child process HOT 5
- Persist Data HOT 1
- Nest can't resolve dependencies of metric providers HOT 12
- [HMR] Error: A metric with the name X has already been registered. HOT 1
- Easy way to exclude PrometheusController from global auth guard? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-prometheus.