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

sentry_sdk_scrapy-0.4.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sentry_sdk_scrapy-0.4.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/19.3.0

File hashes

Hashes for sentry_sdk_scrapy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 74ec505baac2498390118abe6b5b0e56dc534cbf81ed3648a9f7f921a59c7440
MD5 954d4f86b900b9e5643617299b7d1f76
BLAKE2b-256 b80e5fd3f501820c303711d91ad02864347560bc468fa89b3275ac736bd23e44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentry_sdk_scrapy-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.1.4 CPython/3.9.0 Darwin/19.3.0

File hashes

Hashes for sentry_sdk_scrapy-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ded50cd835e9c148261341eddb4d21bbf0f48b056e5afdeb1729672e791e35
MD5 d8a3c7ef993b47fd6f4b615312f95fe2
BLAKE2b-256 1b450ca689abe183e8a68bb40ce7c8796013d1e50e4956db748e461640740201

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