Skip to main content

Decorator for adding telemetry sending capability to functions.

Project description

Skaff Telemetry

Description

The skaff_telemetry module is designed to enhance accelerator monitoring by sending HTTPS requests to a specified backend each time a function is invoked with the decorator. This capability is particularly useful for applications that require real-time monitoring or logging of function usage.

Installation

To get started with the module, install it using pip, the Python package installer. This will download and install the module along with any necessary dependencies automatically.

$ pip install git+https://github.com/artefactory-skaff/python-skaff-probe

The decorator code is put into skaff_telemetry/decorator.py.

Usage

Integrating sonde into your accelerator is straightforward. First, import the decorator from the module. Then, apply the sonde decorator above any function you wish to monitor. Each time the decorated function is called, sonde will send an HTTPS request to your configured backend, allowing you to track when and how often the function is used.

An example is given in skaff_telemetry/example.py

The following arguments must passed to the decorator:

  • accelerator_name: name of the accelerator
  • version_number: version of the accelerator
  • project_name: if accessible, pass the name of the project in which the accelator will be used.

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

skaff_telemetry-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

skaff_telemetry-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file skaff_telemetry-0.1.0.tar.gz.

File metadata

  • Download URL: skaff_telemetry-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.0.0

File hashes

Hashes for skaff_telemetry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c33efb64b3509af46a0b01ba507440db1f26f1e8236867a47d869da12df8182
MD5 b06638ad1c1eb7bc13d8ab6fd94ac4ec
BLAKE2b-256 16cc467a1587737d9fd2347975664975da77bbd46abe85ac09bbb85cc51eb7b6

See more details on using hashes here.

File details

Details for the file skaff_telemetry-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: skaff_telemetry-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.0.0

File hashes

Hashes for skaff_telemetry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8be7be0d77fbf8a23be8b07bc3bd052d06d017a50ce052242370d6eaebb69a43
MD5 8e13d221680332bfa8733f47a602bd00
BLAKE2b-256 abbb2a31039f167159625ef6ca9a5e3657349ae616f72eeda2ec9530be758ed1

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