To install the Python Beeline for your application:
Make sure your version of setuptools is up to date:
pip install -U setuptools
Install the Beeline package:
pip install honeycomb-beeline
Initialize the Beeline by including the following at the entry point to your application:
import beeline
beeline.init(
writekey='YOUR_API_KEY',
# The name of your app/service is a good choice
service_name='my-python-app',
# debug=True, # defaults to False. if True, data doesn't get sent to Honeycomb
)
With debug
set to True
you’ll see events being generated in your terminal output, but they won’t be sent to Honeycomb.
Set debug=False
to start sending events to Honeycomb.