Skip to main content

Control error handler

Error handler for flask with sending exceptions to control service.

Installing

From pypi:

$ pip install control_error_handler

or from source:

$ python setup.py install

Quick start

Add to flask app.configs:

CONTROL_EXCEPTION_URL = 'http://localhost:5000/api/monitoring/send-exception/'
SEND_EXCEPTION_TO_CONTROL = True

Init control handler in __init__.py on flask project:

from flask import Flask
from control_error_handler.error_handler import ControlHandler

app = Flask(__name__)

ControlHandler(app)

Use ES54Exception:

from control_error_handler.exceptions import ES54Exception

raise ES54Exception('Some error...', ext_data={'any_action': True})

Release files for control-error-handler 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for control-error-handler 0.1.3
File Interpreter ABI Platform
control_error_handler-0.1.3-py3-none-any.whl Python 3 none any Details

Release files / control_error_handler-0.1.3-py3-none-any.whl

Download URL control_error_handler-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0764b2f9087f4c989b88a7a8a5fc948edbfa00d6c5901029684e60d1bb9eaa7a
BLAKE2b-256 checksum
How to use checksums
aaaa4d3fe08b9a28b58434e3b583d1803b3b9e7ec7053eb237f023c2a677c89a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page