Python
3.10+- 01Install the package
$ pip install steadwing - 02Initialize the SDK
import os import steadwing steadwing.init( api_key=os.environ["STEADWING_API_KEY"], service="checkout-api", env=os.getenv("STEADWING_ENV", "PROD"), )
Add the SDK to a Python or Node.js service. When an unhandled failure occurs, it captures the exception, error logs, and outgoing HTTP calls that led up to it. Supported integrations add request context; Python integrations can also add database breadcrumbs.
POST /checkoutcheckout-apipayments.internal/v1/charge503 · 421 mscharge request failedPaymentGatewayErrorpayment.py:184Only events with env="PROD" are considered for auto-monitoring.
Open Steadwing to copy the snippet, or create an API key manually. Store the key in a deployment secret.
Open Steadwing$ pip install steadwingimport os
import steadwing
steadwing.init(
api_key=os.environ["STEADWING_API_KEY"],
service="checkout-api",
env=os.getenv("STEADWING_ENV", "PROD"),
)$ npm install @steadwing/nodeimport * as steadwing from "@steadwing/node";
const apiKey = process.env.STEADWING_API_KEY;
if (!apiKey) throw new Error("STEADWING_API_KEY is required");
steadwing.init({
apiKey,
service: "checkout-api",
env: process.env.STEADWING_ENV ?? "PROD",
});Open source · Apache 2.0
Inspect capture, integrations, redaction, and transport in the repository for your runtime.