Metadata-Version: 2.4
Name: errordebugger
Version: 0.1.0
Summary: A simplified Python SDK for ErrorDebugger via OpenTelemetry
Home-page: https://github.com/usama8199/errordebugger-sdks
Author: ErrorDebugger Team
Author-email: support@errordebugger.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opentelemetry-api>=1.21.0
Requires-Dist: opentelemetry-sdk>=1.21.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.21.0
Requires-Dist: opentelemetry-instrumentation>=0.42b0
Provides-Extra: flask
Requires-Dist: opentelemetry-instrumentation-flask>=0.42b0; extra == "flask"
Provides-Extra: django
Requires-Dist: opentelemetry-instrumentation-django>=0.42b0; extra == "django"
Provides-Extra: fastapi
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.42b0; extra == "fastapi"
Provides-Extra: requests
Requires-Dist: opentelemetry-instrumentation-requests>=0.42b0; extra == "requests"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# ErrorDebugger Python SDK

A simplified Python SDK for ErrorDebugger, wrapping OpenTelemetry for easy integration.

## Installation

```bash
pip install errordebugger
```

## Usage

```python
from errordebugger import init, capture_exception
import os

# Initialize the SDK
init(
    dsn="http://localhost:8000",
    token="your-project-token",
    environment="production"
)

# Auto-instrumentation is enabled by default for supported libraries (Flask, Requests, etc.)

# Manual exception capture
try:
    1 / 0
except Exception as e:
    capture_exception(e)
```

## Features

- **One-line initialization**: Automatically sets up OpenTelemetry TracerProvider and OTLP Exporter.
- **Auto-instrumentation**: Automatically instruments supported libraries if they are installed.
- **Manual capture**: Easily capture exceptions manually.
- **Metadata**: Automatically attaches service name, environment, and other metadata to traces.
