{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/4"}],"enrichment":{"capability":"Bridges structlog and Sentry to automatically capture structured logs as Sentry events and breadcrumbs, with configurable thresholds and filtering.","skillfed_tags":["error-tracking","structured-logging"],"use_cases":["Capture application errors logged via structlog and surface them in Sentry's dashboard without duplicating logging calls.","Send structured context from logs as Sentry tags and breadcrumbs for better error correlation.","Automatically report exceptions with sys.exc_info() to Sentry when you call log.error() in exception handlers.","Filter out noisy loggers or skip Sentry reporting for specific log calls while keeping them in local logs.","Integrate structlog JSON output with Sentry for centralized error tracking in monitoring stacks."],"what_it_does":"structlog-sentry is a processor plugin that integrates the Sentry error tracking service with structlog's structured logging framework. It automatically captures log events at configurable severity levels and sends them to Sentry as either breadcrumbs (for lower-severity logs) or full events (for errors and above). The processor sits in structlog's processing pipeline and converts structured log data\u2014including exception info, custom fields, and metadata\u2014into Sentry's event format, with options to tag events, filter specific loggers, and control what context is sent.\n\nYou configure it by adding SentryProcessor to your structlog pipeline after the log-level processor, then log normally with structlog; any logs meeting the event_level threshold automatically appear in Sentry. It supports exception capture, custom tags from log fields, breadcrumb filtering, and per-call opt-out via sentry_skip=True. The package is designed for applications already using both structlog and Sentry, eliminating the need to maintain separate instrumentation for each.","worth_installing":"Yes, if you already use both structlog and Sentry. It eliminates boilerplate and keeps error tracking in sync with your structured logging. The low install friction and permissive license make it a straightforward addition. Dormant maintenance is a minor concern\u2014the package is stable and the last commit is recent\u2014but monitor for breaking changes in structlog or sentry-sdk if you adopt it for a new project."},"id":"structlog-sentry","links":{"html":"https://skillfed.io/packages/structlog-sentry","md":"https://skillfed.io/packages/structlog-sentry.md","pypi":"https://pypi.org/project/structlog-sentry/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-12","license_spdx":null,"license_treatment":"permissive","name":"structlog-sentry","python_support":"supports_current","summary":"Sentry integration for structlog"},"popularity":{"monthly_downloads":4431244,"position":2303,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.2.1"}
