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.
Release files for whatap-python 1.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| whatap_python-1.7.5.tar.gz | 49.7 MB | Details |
Release files / whatap_python-1.7.5.tar.gz
| Download URL | whatap_python-1.7.5.tar.gz |
|---|---|
| Size | 49.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2878d821641a3e43c113e65e4ff17739e9720b2ff9d055510a7dcff48d6b1b7
|
|
BLAKE2b-256 checksum How to use checksums |
4aab8334f92f731d23ec3432cceb45fcd0caf85aeea0128a4f2a31fe986b578b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|