skip to navigation
skip to content

librato_bg 1.0.6

Enables submitting of Librato events in a background thread

Enables submitting of Librato events in a background thread. Heavily inspired by segment.io’s python library which does the same.

Usage

from librato_bg import Client

# initialize with Librato API tokens
client = Client(username, token)

# track as your normally would, params are event, value and source.
# This is non-blocking, submission will take place in other thread
client.gauge('user_clicked', 1, 'prod')

# when exiting, flush to join threads and make sure everything is sent
client.join()
 
File Type Py Version Uploaded on Size
librato_bg-1.0.6-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2016-11-01 5KB
librato_bg-1.0.6.tar.gz (md5) Source 2016-11-01 4KB