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 skaff-telemetry

Python 3.10 or 3.11 is needed

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.

The following arguments must passed to the decorator:

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

Example

from skaff_telemetry import skaff_telemetry

@skaff_telemetry(
    accelerator_name="test_python",
    version_number="0.0.4",
    project_name="xxx",
)
def example_func():
    print("hello")


example_func()

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.4.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.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 06ccbaade3d7037f42d71fcb73eb107b4f4fbfd0adfdc7a587e411387124a9a0
MD5 3e578e9c62af22e997f421add7eca9be
BLAKE2b-256 4c9a3ff6d596d5a52acb7b7d94b637c07fc0ee134e125e0acbd883648e543f2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e483d6d15e93374101e82713edea4bb39945ecbc3cf1070350c47d5ffeabd889
MD5 91b362cc0374ee17861b072892f57dda
BLAKE2b-256 54ca50d7528dde1111f9acd53e09def46a72819ca2ee98e0d0a554bc69975fdd

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