Skip to main content

Python SDK for FinanFut Watchtower.

Project description

FinanFut Watchtower SDK

Python SDK for sending application errors to FinanFut Watchtower.

Install the published package with FastAPI support:

pip install "finanfut-watchtower-sdk[fastapi]==0.1.0"

Until 0.1.0 is published, use the temporary Git dependency:

finanfut-watchtower-sdk[fastapi] @ git+https://github.com/erovirafinanfut/FinanFut_WatchTower.git@main#subdirectory=packages/finanfut-watchtower-sdk
import finanfut_watchtower as watchtower

watchtower.configure_from_env(
    service="billing-api",
    environment="development",
)

try:
    raise RuntimeError("boom")
except RuntimeError as exc:
    watchtower.capture_exception(exc, event="example_failed")

Recommended environment:

WATCHTOWER_SDK_ENDPOINT=http://localhost:8000
WATCHTOWER_SDK_PROJECT_KEY=pk_dev_watchtower
WATCHTOWER_SDK_SECRET_KEY=sk_dev_watchtower_change_me
WATCHTOWER_SDK_SERVICE=finanfut-billing-api
WATCHTOWER_SDK_ENVIRONMENT=development

Integrations:

  • finanfut_watchtower.integrations.fastapi.WatchtowerMiddleware
  • finanfut_watchtower.integrations.logging.WatchtowerLoggingHandler
  • finanfut_watchtower.monitor_job

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

finanfut_watchtower_sdk-0.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finanfut_watchtower_sdk-0.1.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file finanfut_watchtower_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: finanfut_watchtower_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for finanfut_watchtower_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed389a305edceb20e8c669e94a18e61d49374ca67b168da723b2f278d8196578
MD5 6edfa1fcf3405062cb85add758ef2b8d
BLAKE2b-256 2d6bfbdae057f2628e83c18bcd23daa3ebd1098f5e888e15c75a6710ce83f9d2

See more details on using hashes here.

File details

Details for the file finanfut_watchtower_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for finanfut_watchtower_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39fbabbf40aff2afdd45c6582d1a930ad0dc22d6b35333fa5df17e018b16f651
MD5 0186b41370c568a381c7365fbcdb34bb
BLAKE2b-256 3ed8b496f986b0b5b7e05793687092388d80d6d19a6f9c3fb3b752cb0b62c358

See more details on using hashes here.

Supported by

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