Skip to main content

Enables submitting of Librato events in a background thread

Project description

Build Status Coverage Status PyPI Release

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

librato_bg-1.0.6.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

librato_bg-1.0.6-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page