Skip to main content

Scrapy extension for integration of Sentry SDK to Scrapy projects

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy_sentry_sdk-0.4.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapy_sentry_sdk-0.4.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file scrapy_sentry_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: scrapy_sentry_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.6 Linux/5.8.14-200.fc32.x86_64

File hashes

Hashes for scrapy_sentry_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9f13c04a774c94183b65a4d2cf2a6e195e8cd071db037550ea3d104b12bc0128
MD5 df815af9532fb11711ff868332bbb822
BLAKE2b-256 806f5f86ba2277edc4fb93d4dbe57aee739918af9599bee069a5ff8f16cd42b2

See more details on using hashes here.

File details

Details for the file scrapy_sentry_sdk-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: scrapy_sentry_sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.6 Linux/5.8.14-200.fc32.x86_64

File hashes

Hashes for scrapy_sentry_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96181c13943e00df8df88e46661fa78e6c362d305195f8803c53a87400014f7a
MD5 43ca40cb8ed1554d077f3fa159fedb3d
BLAKE2b-256 79bfafb801471c49f29462f36d862da6826e781241c28b571184de0fee89425f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page