Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracescopio-2.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

tracescopio-2.0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page