Context-managed metrics tracking and output, including but not limited to process/subprocess latencies.
Reason this release was yanked:
Changing namespace and releasing new package
Project description
The goblinfish.metrics.process_timing Package
Provides context-manager classes to name, track and report elapsed-time and other metrics for top-level process entry-points (like AWS Lambda Function handlers) and sub-processes within them.
Quick Start
Install in your project:
# Install with pip
pip install goblinfish-metrics-process_timing
# Install with pipenv
pipenv install goblinfish-metrics-process_timing
Import in your code:
from goblinfish.metrics.process_timing import ProcessTimer
Create the timing-tracker instance:
tracker = ProcessTimer()
Decorate your top-level/entry-point function:
@tracker.track
def some_function():
...
Add any sub-process timers:
@tracker.track
def some_function():
...
with tracker.timer('some_process_name'):
# Do stuff here
...
When this code is executed, after the context created by the @tracker.track decorator is complete, it will print something that looks like this:
{"some_process_name": 0.0, "some_function": 0.0}
More detailed examples can be found in the examples directory in the repository.
Contribution guidelines
At this point, contributions are not accepted — I need to finish configuring the repository, deciding on whether I want to set up automated builds for pull-requests, and probably several other items.
Who do I talk to?
The current maintainer(s) will always be listed in the [maintainers] section of the pyproject.toml file in the repository.
Project details
Release history Release notifications | RSS feed
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 goblinfish_metrics_process_timing-0.0.3.dev2.tar.gz.
File metadata
- Download URL: goblinfish_metrics_process_timing-0.0.3.dev2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ff15cf6d128c2247411ee5251b1fe95934e21412df95baf828d5921c5c6528d
|
|
| MD5 |
5ad5707b972edf259fccaf8f3647e6ee
|
|
| BLAKE2b-256 |
152817753049a8a06e8709a849328e16e95e491066d8c1af6ee584ef5e400d62
|
File details
Details for the file goblinfish_metrics_process_timing-0.0.3.dev2-py3-none-any.whl.
File metadata
- Download URL: goblinfish_metrics_process_timing-0.0.3.dev2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63280bf35907a84e8a75ac51becd100566b3c78a966427f4d19f67b9d575fc31
|
|
| MD5 |
a7a862dc018ef27ed4043259dc423376
|
|
| BLAKE2b-256 |
508b5921b3b75cd8a6b9e179b9a6e65e6973b4a720e953708c30923c623ed8b3
|