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
  • 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.1",
    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.2.tar.gz (7.2 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 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.2.tar.gz
Algorithm Hash digest
SHA256 0250c5351a42e8eeac95856e3f69df67a096a7c854bf3aa1d33e2f253f676ad4
MD5 5d3521dd356a585e3ef1997ff5028fdf
BLAKE2b-256 beba5a96fe66fe1d4b36bde1cb29bd1c32d48a0f4160c2ca99d7c909d3e8a9ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8606d0d4bec5724370469be691deba89ebdefa2d1e9554a229756d47e03cd2a4
MD5 69caf8904c5fcbe55c0bc584fa70cf66
BLAKE2b-256 66b77a60e5682fe71db8c58d63e8a7e6476f945f62162581758fe1c1c143d536

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