Skip to main content

Python Application Tracer

Project description

Slowjam is an easy to use application tracer for python.

Listen to this:

>>> import requests

>>> from slowjam.trace import span
>>> from slowjam.context import slowjam_context

>>> slowjam_context.start('my_application', extras={'http': True})

>>> with span('listen', extras={'deylay': 3}):
>>>     resp = requests.get('https://httpbin.org/delay/3')

>>>     with span('request.origin'):
>>>         origin = resp.json().get('origin')
>>>         origin.split('.')

>>> profile = slowjam_context.stop()
>>> if profile:
>>>     print ''
>>>     print unicode(profile)
>>>     print ''

       time   exec time event
----------- ----------- ------------------------------
       0 ms             + my_application [http=True]
       0 ms             | + listen [deylay=3]
    8039 ms (+    0 ms) | | = request.decode
            (+ 8039 ms) | +
            (+ 8039 ms) +

Slowjam makes it easy to start getting feedback quick, but with some extra effort it seamlessly integrates with other monitoring tools such as statsd, graphite, and logstash.

Feature Support

  • Application Tracing

  • Function timing

  • Usable output

  • Graphite Integration

Could Happen

Installation

To install Slowjam, simply:

$ pip install slowjam
✨🍰✨

History

This was originially open-sourced by App.net in their open source version of Alpha.

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

slowjam-1.3.5.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file slowjam-1.3.5.tar.gz.

File metadata

  • Download URL: slowjam-1.3.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slowjam-1.3.5.tar.gz
Algorithm Hash digest
SHA256 bd258fb48a80284914ee9279a28dd9365062e02659d22f7836b557668cb2fd69
MD5 8d14ffa23c9c48f10b4ee8e347b91e8d
BLAKE2b-256 bce9b8eedada107a18f26a801f0c7a1170a5b0ec3d6b3a7dde5aa914e832c926

See more details on using hashes here.

Supported by

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