-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Signer prometheus metrics #61
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Vercel deployment URL: https://signer-metrics-c3o641n2q-hirosystems.vercel.app 🚀 |
// First load default.env to prevent envSchema from throwing errors | ||
const defaultParsed = dotenv.config({ path: `${__dirname}/default.env` }).parsed; | ||
dotenv.populate(process.env as Record<string, string>, defaultParsed as Record<string, string>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indicative of a problem with our ENV init approach. Our modules have side-effects -- in this case src/env.ts
has top-level evaluations to init the ENV
object.
These lines setup some env var defaults to prevent that module from throwing errors. A better approach would be to remove side-effects from modules, for example make ENV a getter that only evals on demand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome
## [0.12.0](v0.11.0...v0.12.0) (2024-11-22) ### Features * signer prometheus metrics ([#61](#61)) ([d7a84f4](d7a84f4))
🎉 This PR is included in version 0.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #51
Adds public prometheus metrics endpoint
/signer-metrics/metrics
.