Skip to main content

Runtime agent that captures uncaught errors + env snapshot and prints data‑driven CLI hints.

Project description

Corp Error Agent

A lightweight runtime agent that captures uncaught exceptions and environment snapshots.

Install this in your project to capture errors and send them to a backend for further processing and fix suggestions.

Backend URL Configuration

The backend URL defaults to http://127.0.0.1:8000, but you can change it in two ways:

  1. Environment Variable (recommended for quick changes):

    • Set the environment variable ERROR_AGENT_URL to your backend URL before running your Python process.
      • On Windows (cmd): set ERROR_AGENT_URL=http://your-backend:port
      • On PowerShell: $env:ERROR_AGENT_URL="http://your-backend:port"
      • On Unix/bash: export ERROR_AGENT_URL=http://your-backend:port
  2. Persistent CLI Configuration:

    • Use the provided CLI helper to set the backend URL once per machine:
      python -m corp_error_agent.cli configure --url http://your-backend:port
      
    • This stores the URL in a user config file for persistent use.

Telemetry Server

You can use or further customize the corp_error_agent_server Django REST project as a telemetry server for this package.


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

corp_error_agent-0.3.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

corp_error_agent-0.3.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file corp_error_agent-0.3.2.tar.gz.

File metadata

  • Download URL: corp_error_agent-0.3.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for corp_error_agent-0.3.2.tar.gz
Algorithm Hash digest
SHA256 13add93bd0d6e2c810d10ad2a2d179561b1d4d39dd798e3cb3ded118d9130ea3
MD5 899c4ee2556c0c8a799e787fd2f4247a
BLAKE2b-256 2a96a4c69cc33c5c5e37d905e7e22c9e99c7ee72d5b0e6a9fdd41bdebb8e5a56

See more details on using hashes here.

File details

Details for the file corp_error_agent-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for corp_error_agent-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c25b694e973202cee1e135536c0f703ba215155898d99494847bf9241c39fc62
MD5 8e34a610f1a296857ddd17e84017f766
BLAKE2b-256 e0891e1ec5bb610fe616e1afc4205705c7a1d1caaa197b9ebc6042b504621033

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