-
Django simple example - captures basic metadata about each request coming through the django app
-
Django response time example - captures response time as well as basic metadata for requests to the django app
-
Django dynamic fields example - uses dynamic fields to generate values for the metric when
new_event()
is called, rather than the time of definition -
Factorial - examples of how to use some of the features of libhoney in python, a single file that uses a factorial to generate events
-
Tornado Factorial - examples of how to use some of the features of libhoney in python, a single file that uses a factorial to generate events and sends them with Tornado async http client
Inside each example django directory:
poetry install
poetry run python manage.py migrate # initialize the project
HONEYCOMB_API_KEY=api-key HONEYCOMB_DATASET=django-example poetry run python manage.py runserver
For the Factorial examples, there's no need to run the migrate step. Do only this:
poetry install
HONEYCOMB_API_KEY=api-key poetry run python3 example_tornado.py
orexample.py