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

Uploaded Python 3

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ea83aaea9db07c7cee5ebff1ae31c54deb3ff0248076c627c733e94612cd8d1b
MD5 c3beb829677cb0c5c4ad87e9641ffe0e
BLAKE2b-256 fdea28a1ae2de18441511f2b562a90b7c39ec5f5ced274aaf531847fce72cb14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skaff_telemetry-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c2e7f0d65867bae51f0261597474af293bb1b7941cf9695aa14f1d9b781d7e1
MD5 676905ef4bf7cd3c55e3026a9a940ad4
BLAKE2b-256 4ee24869d5556ace34dab27d61fa6f52c8ebe4c2f7b9c2df6d8ab70108c46b94

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