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 acceleratorversion_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ccbaade3d7037f42d71fcb73eb107b4f4fbfd0adfdc7a587e411387124a9a0
|
|
| MD5 |
3e578e9c62af22e997f421add7eca9be
|
|
| BLAKE2b-256 |
4c9a3ff6d596d5a52acb7b7d94b637c07fc0ee134e125e0acbd883648e543f2d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e483d6d15e93374101e82713edea4bb39945ecbc3cf1070350c47d5ffeabd889
|
|
| MD5 |
91b362cc0374ee17861b072892f57dda
|
|
| BLAKE2b-256 |
54ca50d7528dde1111f9acd53e09def46a72819ca2ee98e0d0a554bc69975fdd
|