Package: pipeline-telemetry
Create and store data pipeline telemetry dataFree software: GNU Lesser General Public License v3 or later (LGPLv3+)Installing pipeline-telemetrypip install pipeline-telemetryYou can also install the in-development version with:pip install https://github.com/MaartendeRuyter/pipeline-telemetry/archive/master.zipDocumentationhttps://pipeline-telemetry.readthedocs.io/TestingTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.9.4 (2022-11-03)AddedPartialToSingleMongoAggregatorandPartialToSingleAggregatorclasses to allow automated aggregation of multiple partial telemetry objects to a single telemetry object.0.9.3 (2022-10-26)Added support for python 3.110.9.2 (2022-10-11)Added automatic deletion of old aggegration telemetry0.9.1 (2022-10-04)Fixed defect in MongoStorage.0.9.0 (2022-10-03)AddedDailyMongoAggregatorandDailyAggregatorclasses to allow
automated aggregation of multiple intraday telemetry objects to daily
telemetry objects.0.4.5 (2022-06-09)Addedset_telemetry_source_namemethod toTelemetryMixinclass0.4.4 (2022-06-08)Added custom __hash__ method toTelemetryCounter0.4.3 (2022-06-01)Addedset_incrementmethod toTelemetryCounterclass.0.4.2 (2022-05-17)Addedprocess_telemetry_counters_from_listmethod toTelemetryMixinclass.0.4.1 (2022-05-16)Addedprocess_telemetry_counters_from_return_valuemethod toTelemetryMixinclass.Added documentation on TelemetryCounter0.4.0 (2022-05-15)AddedTelemetryMixinclass to enable easy including of telemetry update
methods in any datapipeline class.0.3.1 (2022-05-13)Addedprocess_telemetry_counters_in_return_valuehelper method to easily
add retrieve and process TelemetryCounter objects from a return value object.Addedprocess_return_valuehelper method to process both ErrorCode and
TelemetryCounter objects from a return value object.Added more documentation0.3.0 (2022-05-12)Addedadd_errors_from_return_valuehelper method to easily add the errors
from aReturnValueWithStatusobject fromerror-managerpackage.Automatically initialize a missing sub_process when a telemetry counter is
added to the telemetry instance.0.2.18 (2022-03-2)Addedadd_single_usage_telemetrydecorator to be used for single usagetelemetry objects0.2.16 (2022-02-01)Addedtelemetry_typeandio_time_in_secondsattributes to Telemetryobject including a method to increaseio_time_in_seconds.0.2.12 (2022-01-19)Addedtraffic_lightattribute to Telemetry object indicating the success
state of the datapipeline process that is reporting onSome minor refactoring0.2.11 (2022-01-18)Addedcreated_atfield in mongo storage class for better date selectionof the telemetry objects0.2.10 (2022-01-18)Added indexes to mongo storage class0.2.8 (2022-01-13)Fix in storage classes to ensurecategoryandsub_categoryto be
stored in the toplevel of the telemetry object0.2.7 (2022-01-13)Added fieldscategoryandsub_categoryto the telemetry object to
allow for better distinction between telemetry sourcesRename telemetry field ‘process_name’ to ‘soure_name’ to be more clear about
the data source in scope of the telemetry object0.2.6 (2021-12-08)Added default increment value = 1 to methodsincrease_base_countandincrease_fail_count0.2.5 (2021-11-11)Implementedincrease_base_countandincrease_fail_countmethod. They
can be used to make your code more readable when updating the telemetry0.2.4 (2021-11-11)Implementedadd_tomethod inTelemetryCounter. Can be used to  add aTelemetryCounterinstance to an object with a telemetry instance attached
to it. This will make the code more readable.0.2.3 (2021-11-10)Added attributeprocess_typestoTelemetryCounterdataclass next to
existingprocess_typeattribute. This allows you to choose between a list
of process_types or just a single process_type to be in scope of theTelemetryCounter`instance0.2.2 (2021-11-10)addedadd_mongo_telemetrydecorator that uses mongo storage class0.2.1 (2021-11-09)addedis_telemetry_countermethod in helper modulemovedadd_telemetrydecorator to helper moduleboth methods can be directly imported frompipeline_telemetrymodule0.2.0 (2021-11-09)added error field toTelemetryCounterso that default Errorcodes
can be used in aTelemetryCounterinstance to keep an error counter
in the telemetryUpdated 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 (2021-11-05)added Telemetry method add_telemetry_counterAddedTelemetryCounterclass 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)0.0.4 (2021-10-31)Seperated the storage moduleAdded MongoDb storage classStarted with documentation0.0.1 (2021-10-06)First release on PyPI.