Basic Initialization
Initialize the SDK early in your application startup (before any requests are handled):Configuration Options
Required Parameters
The API endpoint URL for error ingestion. Typically
https://api.proliferate.com/api/v1/errorsYour project API key. Get this from your Proliferate dashboard under Project Settings > API Keys.Format:
pk_{project_slug}_{random_hex}Optional Parameters
The environment name (e.g.,
"production", "staging", "development").If not provided, the SDK checks these environment variables in order:PROLIFERATE_ENVIRONMENTENVIRONMENTENVPYTHON_ENVAPP_ENV
"production" if none are found.The release version or commit SHA. Used for:
- Grouping errors by release
- Source map resolution
- Release-based filtering in the dashboard
Whether to actually send errors to Proliferate.Set to
False for local development or testing to prevent test errors from appearing in production.Auto-Detection
Release Auto-Detection
The SDK automatically detects the release version from these sources (in order):1
Environment Variables
Checks common CI/CD environment variables:
PROLIFERATE_RELEASE(highest priority)RELEASE_VERSION(Docker convention)GITHUB_SHA(GitHub Actions)VERCEL_GIT_COMMIT_SHA(Vercel)CF_PAGES_COMMIT_SHA(Cloudflare Pages)RENDER_GIT_COMMIT(Render)RAILWAY_GIT_COMMIT_SHA(Railway)HEROKU_SLUG_COMMIT(Heroku)GITLAB_CI_COMMIT_SHA(GitLab CI)CIRCLE_SHA1(CircleCI)GIT_COMMIT(Generic)COMMIT_SHA(Generic)
2
Git Command
If no environment variable is found, runs
git rev-parse HEAD to get the current commit SHA.3
Fallback
If all detection methods fail,
release is set to None.Environment Auto-Detection
The SDK checks these environment variables (in order):PROLIFERATE_ENVIRONMENTENVIRONMENTENVPYTHON_ENVAPP_ENV
"production".
Complete Example
FastAPI Example
Flask Example
Environment Variables
Recommended environment variable setup:.env

