Tracescopio - um capturador simples de tracebacks
Project description
Tracescopio: Simplifying Stack Trace Retrieval for Your Django Applications Remotely
Tracescopio is a tool designed to make obtaining stack traces from your python app easy: the events are sent to your Tracescopio app. (You can install Tracescopio app in your own server. See more.)
Get started
Firts of all, make sure your have your own server running. After that, use the pip command to install the tracescopio in your app:
pip install tracescopio
Put the the your Tracescopio url server in your project's settings.py file:
(...)
TRACERSCOPIO_SERVER = '<your tracescopio-app url>'
Obtain the IDE code for your app:
python manage.py shell
from tracescopio import scopio
TracescopioApp.new(name='foo', url='foo.com')
{'ide':some-code-for-your-app', 'msg':'Success'}
Put the "ide" code in your project's settings.py file:
(...)
APP_TRACESCOPIO_IDE = '<the ide code for you app>'
Finally, to get the stack traces you can use the decorator or the middleware.
Decorator
Add the import
(..)
from tracescopio.decorators import traceme
Add the decorator
@trace
def the_view_raising_some_exception(request, *args, **kwargs):
(...)
Middleware
In your settgins.py's middleware section, add the tracescopio middleware:
(...)
MIDDLEWARE = [
(...)
"tracescopio.middleware.telemetria.TelemetryMiddleware",
]
That is it!
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 tracescopio-2.0.1.tar.gz.
File metadata
- Download URL: tracescopio-2.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b99864613424a8e093a458de65084e015c732176dc2e6d1d1e884fcbc9566ee
|
|
| MD5 |
5f452bbee28d6ce5142d30be8e9fce2f
|
|
| BLAKE2b-256 |
cba11bc9a3d538c7141e2a6d5fe7dd1548029ff441394e6c6db5df9692c69365
|
File details
Details for the file tracescopio-2.0.1-py3-none-any.whl.
File metadata
- Download URL: tracescopio-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f16c30f2e1bd63e79325213b398d7857b2ee7fde8681576aa823516b6863176
|
|
| MD5 |
64f08165b9f05d76a3e1da016639beb7
|
|
| BLAKE2b-256 |
2161d6067319d9436791ca4864fc6d0f4dd2b1442dd666a463adeb61ec73fb21
|