Skip to main content

Epsagon Instrumentation for Python

Project description

Epsagon Instrumentation for Python

Build Status Pyversions PypiVersions

This package provides an instrumentation to Python code running on functions for collection of distributed tracing and performance monitoring.

Installation

From your project directory:

$ pip install epsagon

More details about lambda deployments are available in the AWS documentation.

Basic Usage

Simply use our decorator to report metrics:

import epsagon
epsagon.init(
    token='my-secret-token',
    app_name='my-app-name',
    metadata_only=False,  # Optional, send more trace data
)

@epsagon.lambda_wrapper
def handler(event, context):
  pass

Custom labels

You can add custom labels to your traces. Filters can later be used for filtering traces that contains specific labels:

@epsagon.lambda_wrapper
def handler(event, context):
  epsagon.label('first_label', 'value1')
  epsagon.label('second_label', 'value2')
  pass

Copyright

Provided under the MIT license. See LICENSE for details.

Copyright 2018, Epsagon.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

epsagon-1.0.37.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epsagon-1.0.37-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file epsagon-1.0.37.tar.gz.

File metadata

  • Download URL: epsagon-1.0.37.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for epsagon-1.0.37.tar.gz
Algorithm Hash digest
SHA256 1c510be4271b31f6492c487add8bc7ef9031ab9bd96d8c54c05eb5153f54e0dd
MD5 247540ec6b9ce0355fc578fa00c5d796
BLAKE2b-256 9547c39b5a23050c65975d8f28cff7822f352c6549f34db90620e28996db90b4

See more details on using hashes here.

File details

Details for the file epsagon-1.0.37-py3-none-any.whl.

File metadata

  • Download URL: epsagon-1.0.37-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for epsagon-1.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 5eca4446011d56d2655b0665e673339ed3d336770a3ef03728236cdd3a1a9df8
MD5 769345ff4c46c737189698dd3bf04ce6
BLAKE2b-256 4a1a409a093a56ecd76c3375ace564b49202185217c3af9c0d0d93148fbe7e6e

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