-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update documentation (README and examples) #13
Update documentation (README and examples) #13
Conversation
|
||
[See Why Autometrics?](https://github.com/autometrics-dev#why-autometrics) for more details on the ideas behind autometrics | ||
1. A decorator that can create [Prometheus](https://prometheus.io/) metrics for your functions and class methods throughout your code base. | ||
2. A helper function that will write corresponding Prometheus queries for you in a Markdown file. |
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.
i'm actually not sure if the "Markdown file" bit is accurate? if so, i should add an example
from autometrics import autometrics | ||
|
||
```py | ||
from autometrics.autometrics import autometrics |
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.
seems like we need to use from autometrics.autometrics
- wondering if there's a way to make the import cleaner
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.
i'm thinking we might actually do something like:
import autometrics
@autometrics
...
couldn't we? half as joke but i think it's doable
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.
never mind, i forgor how python package resolution works. here's a pr that enables usage like from autometrics import autometrics
f989ec6
to
ff0b691
Compare
This PR adds the following:
examples
foldercaller
data