Comments (4)
You can always make them a variable if you want. Nothing that says they have to be declared inline in the providers
array.
from nestjs-prometheus.
Your solution makes total sense and is expected. In order for the any injectable to be visible to other modules, they must be exported unless they all live within that module. The Nest.js docs explain these concepts
from nestjs-prometheus.
I see @willsoto I just didn't really like repeating the code twice, so perhaps there was another solution 😊
from nestjs-prometheus.
I think it will be better if we update DOCS as this package is specific to NESTJS.
I shall raise PR @willsoto for your last comment too
from nestjs-prometheus.
Related Issues (20)
- 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
- While using .registerAsync with custom controller, custom controller not working and path is ignored HOT 9
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.