This release is a pre-release and may not be stable for production use.
ZerocIce latency metrics collector
Simple Example
from ice_latency_metrics_collector import latency_metrics_factory
import MyIceModule
with_latency_metrics = latency_metrics_factory(enabled=True)
@with_latency_metrics
class MyServant(MyIceModule.MyServant):
# This method send timings to statsd
def my_proxyed_method(self):
# your implementation
pass
# This method don't send timings to statsd
def my_custom_internal_method(self):
# your implementation
pass
Statsd configuration
config param in factory will be passed to StatsClient constructor
latency_metrics_factory(enabled=True, config=dict(host='statsd'))
Logging configuration
You need to apply standard python logging configuration before decorator usage.
Disable or enable
Example with env
import os
METRICS_ENABLED = os.environ.get('METRICS_ENABLED', 'false').lower() == 'true'
latency_metrics_factory(enabled=METRICS_ENABLED)
Metadata
Release files for ice_latency_metrics_collector 0.1.0a9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ice-latency-metrics-collector-0.1.0a9.tar.gz | 3.3 kB | Without provenance | Details for ice-latency-metrics-collector-0.1.0a9.tar.gz |
Release files / ice-latency-metrics-collector-0.1.0a9.tar.gz
| Download URL | ice-latency-metrics-collector-0.1.0a9.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4c1da1aff629c0f47b57ef764a3ecfb55c17fcd1e1c6a44ec788d9d3ae63717
|
|
BLAKE2b-256 checksum How to use checksums |
2cf762aeec8e36d422f64d6105463da63bb5c27a924a9bcf545549f67b0c7b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ice_latency_metrics_collector 0.1.0a9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.