-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update usage documentation #100
base: master
Are you sure you want to change the base?
Conversation
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.
For SiberMetrics
There's no pointer to the existing use of SiberMetrics in siber
For autoloadEnv
It would be better to separate the process for using autoloadEnv
from the explanation of existing env schemas and types
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.
expecting fixes as discussed
README.md
Outdated
@@ -49,6 +49,65 @@ const server = new InversifyExpressServer(container, null); | |||
}) | |||
``` | |||
|
|||
## What is SiberMetrics and how it works. | |||
|
|||
SiberMetrics are routers around prometheus client for node.js to record and export a histogram of an http request. |
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.
Routers or "wrappers"?
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.
Capitalise Prometheus, NodeJS.
@@ -49,6 +49,65 @@ const server = new InversifyExpressServer(container, null); | |||
}) | |||
``` | |||
|
|||
## What is SiberMetrics and how it works. |
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.
It's not quite a "histogram of an HTTP request".
https://prometheus.io/docs/introduction/overview/
@@ -23,7 +23,7 @@ export class IncompleteEnvError extends Error { | |||
* keys. | |||
* @param schema schema to use for validation | |||
*/ | |||
export function autoloadEnv<T extends AppConfig>(schema: ObjectSchema): T { | |||
export function autoloadEnv<T>(schema: ObjectSchema): T { |
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.
Why did you change these?
Changes