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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file librato_bg-1.0.6.tar.gz.

File metadata

  • Download URL: librato_bg-1.0.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for librato_bg-1.0.6.tar.gz
Algorithm Hash digest
SHA256 bcac912af5a59216bce508de780c501b25c61ac20d8105aaae02937e6a1e929f
MD5 5c369a72453da34b0862a1d20bd339a7
BLAKE2b-256 99679fb300241281aa48780f189d55d153f94a44be65c303a54a4db3d899e78d

See more details on using hashes here.

File details

Details for the file librato_bg-1.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for librato_bg-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 191730de44d1f0dda312684c1e8a855b88cd8aad2c005aa72d590cbe8f90fe3f
MD5 c0b3898ac6b2db03d5d6f15e5a6fa57e
BLAKE2b-256 8c45eeff70e85d3c7cc3f901e8290339bf5a0b28928ac8afd43056021b8699cb

See more details on using hashes here.

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