WhaTap for python
Whatap allows for application performance monitoring.
Support: WSGI server application & Batch job & Specific method profiling.
Python version : 2.7 + & 3.3+
Installation
$ pip install whatap-python
Application Monitoring
Supported web frameworks such as Django, Flask, Bottle, Cherrypy, Tornado and WSGI Server Application.
Configuration
$ export WHATAP_HOME=[PATH] $ whatap-setting-config --host [HOST_ADDR] --license [LICENSE_KEY] --app_name [APPLICATION_NAME] --app_process_name [APP_PROCESS_NAME]
Usage
$ whatap-start-agent [YOUR_APPLICATION_START_COMMAND] ...
Unsupported web frameworks WSGI
If you want WSGI Application monitoring, include the @register_app decorator.
import whatap @whatap.register_app def simple_app(environ, start_response): """Simplest possible application object""" status = '200 OK' response_headers = [('Content-type', 'text/plain')] start_response(status, response_headers) return ['Hello world!\n']
Method Profiling
If you want method profiling, include the @method_profiling decorator.
from whatap import method_profiling @method_profiling def db_connection(): db.connect('mysql:// ..') @method_profiling def query(): db.select('select * from ..') ....
Batch Monitoring
for Batch job.
Configuration
Set Environment valiable configuration.
$ export WHATAP_BATCH_HOME=[PATH] $ cat >> $WHATAP_BATCH_HOME/whatap.conf << EOF license=[LICENSE_KEY] whatap.server.host=[HOST_ADDR] app_name=batch app_process_name=batch EOF
Usage
Start bach agent.
$ whatap-start-batch
Example code
from whatap import method_profiling class Command(BaseCommand): @batch_profiling def handle(self, *args, **options): // batch code.. ....
Restart
Your Application restart.
Copyright
Copyright (c) 2017 Whatap, Inc. All rights reserved.
Metadata
Release files for whatap-python 0.0.14
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 | |
|---|---|---|---|---|
| whatap_python-0.0.14.tar.gz | 48.6 MB | Without provenance | Details |
Release files / whatap_python-0.0.14.tar.gz
| Download URL | whatap_python-0.0.14.tar.gz |
|---|---|
| Size | 48.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2658a65ac758c5315fe13cd598cdfb749dcad579b497c2fc33ffccd5bd9c50c7
|
|
BLAKE2b-256 checksum How to use checksums |
66b900346a9b82e6e1c1a4fd1f8fc5926db4882212aac96408995f534c1ad1be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for whatap-python 0.0.14
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.