Skip to main content

scrapy-sentry-sdk

A Scrapy extension for integration of Sentry SDK to Scrapy projects.

This package provides a Scrapy extension for convenient initialization of Sentry SDK.

Installation

pip install scrapy_sentry_sdk

Usage

To use the extension add the following to you project settings.py:

# Send exceptions to Sentry
# replace SENTRY_DSN by you own DSN
SENTRY_DSN = "XXXXXXXXXX"

# Optionally, additional configuration options can be provided
SENTRY_CLIENT_OPTIONS = {
    "release": "you-project@version"  # these correspond to the sentry_sdk.init kwargs
}

# Enable or disable extensions
# See https://doc.scrapy.org/en/latest/topics/extensions.html
EXTENSIONS = {
    'scrapy_sentry_sdk.extensions.SentryLogging': 1,  # Load SentryLogging extension before others
}

Configuration

Currently, this extension uses two Scrapy settings keys:

  • SENTRY_DSN: your project DSN (string, required)
  • SENTRY_CLIENT_OPTIONS: additional SDK options (dict, optional)

More details on configuring the SDK can be found in Sentry documentation.

Metadata

Release files for scrapy-sentry-sdk 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapy-sentry-sdk 0.4.1
File Size Uploaded Provenance Actions
scrapy_sentry_sdk-0.4.1.tar.gz 2.1 kB Without provenance Details for scrapy_sentry_sdk-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-sentry-sdk 0.4.1
File Interpreter ABI Platform Actions
scrapy_sentry_sdk-0.4.1-py3-none-any.whl Python 3 none any Details for scrapy_sentry_sdk-0.4.1-py3-none-any.whl

Total release size: 4.5 kB

Release files / scrapy_sentry_sdk-0.4.1.tar.gz

Download URL scrapy_sentry_sdk-0.4.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9f13c04a774c94183b65a4d2cf2a6e195e8cd071db037550ea3d104b12bc0128
BLAKE2b-256 checksum
How to use checksums
806f5f86ba2277edc4fb93d4dbe57aee739918af9599bee069a5ff8f16cd42b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.6 Linux/5.8.14-200.fc32.x86_64

Release files / scrapy_sentry_sdk-0.4.1-py3-none-any.whl

Download URL scrapy_sentry_sdk-0.4.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96181c13943e00df8df88e46661fa78e6c362d305195f8803c53a87400014f7a
BLAKE2b-256 checksum
How to use checksums
79bfafb801471c49f29462f36d862da6826e781241c28b571184de0fee89425f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.6 Linux/5.8.14-200.fc32.x86_64

Security for scrapy-sentry-sdk 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page