Skip to content
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

Merged
merged 7 commits into from
Apr 6, 2023

Conversation

brettimus
Copy link
Collaborator

This PR adds the following:

  • Link to the Autometrics VSCode extension in the README
  • Add a README to the examples folder
  • Add documentation to each example
  • Add an example query to explore caller data


[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.
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

Copy link
Contributor

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

Copy link
Contributor

@actualwitch actualwitch Apr 6, 2023

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

@brettimus brettimus force-pushed the update-docs-20230405 branch from f989ec6 to ff0b691 Compare April 5, 2023 17:01
@actualwitch actualwitch merged commit 15fcb0c into autometrics-dev:main Apr 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants