Pipeline-telemetry

Latest version: v1.1.0

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 6

0.2.4

------------------
* Implemented ``add_to`` method in ``TelemetryCounter``. Can be used to add a
``TelemetryCounter`` instance to an object with a telemetry instance attached
to it. This will make the code more readable.

0.2.3

------------------
* Added attribute ``process_types`` to ``TelemetryCounter`` dataclass next to
existing ``process_type`` attribute. This allows you to choose between a list
of process_types or just a single process_type to be in scope of the ``TelemetryCounter instance

0.2.2

------------------
* added ``add_mongo_telemetry`` decorator that uses mongo storage class

0.2.1

------------------
* added ``is_telemetry_counter`` method in helper module
* moved ``add_telemetry`` decorator to helper module
* both methods can be directly imported from ``pipeline_telemetry`` module

0.2.0

------------------
* added error field to ``TelemetryCounter`` so that default Errorcodes
can be used in a ``TelemetryCounter`` instance to keep an error counter
in the telemetry
* Updated add_telemetry_counter so that it can handle TelemetryCounter instances
with either an Errorcode of a custom counter. In case of ErrorCode the actual
error_code will serve as the customer counter.

0.1.0

------------------
* added Telemetry method add_telemetry_counter
* Added ``TelemetryCounter`` class that can be used to make prefedined objects
that can be added to the Telemetry instance with the add_telemetry_counter
method. This will improve readibilty of your code::

from pipeline_telemetry import TelemetryCounter

YOUR_PREDFINED_COUNTER = (
process_type=ProcessTypes.CREATE_DATA_FROM_API,
sub_process='RETRIEVE_RAW_DATA',
counter_name='my_custom_counter',
)

telemetry.add_telemetry_counter(YOUR_PREDFINED_COUNTER)

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.