integrations_sentry module

Sentry integration client (API v0) – minimal, fail-open.

Environment variables: - SENTRY_AUTH_TOKEN: required for API calls - SENTRY_ORG or SENTRY_ORG_SLUG: organization slug - SENTRY_PROJECT or SENTRY_PROJECT_SLUG: optional project slug (filter) - SENTRY_API_URL: optional base (default https://sentry.io/api/0)

Notes: - Uses aiohttp if available; otherwise, returns empty results - All functions are best-effort and never raise

integrations_sentry.is_configured()[מקור]
Return type:

bool

async integrations_sentry.get_recent_issues(limit=10)[מקור]

Return recent issues for the configured org (optionally filtered by project).

Best-effort: returns empty list on any failure.

Return type:

List[Dict[str, Any]]

פרמטרים:

limit (int)

async integrations_sentry.search_events(query, limit=20)[מקור]

Search events across the organization using a simple query string.

For triage by request_id, pass e.g. query=«request_id:“abc123“«.

Return type:

List[Dict[str, Any]]

פרמטרים:
async integrations_sentry.get_issue_events(issue_id, limit=20)[מקור]

Return events for a given Sentry issue id (not shortId).

Return type:

List[Dict[str, Any]]

פרמטרים: