Skip to main content

Sentry integration with Plone 5.2/Zope 4

Project description

collective.sentry

Sentry integration with Zope.

Requirements

  • Plone 6.2 (tested)

  • Python 3.10+

For older Plone/Python versions, use version up to 0.3.2.

Installation

Add collective.sentry to your buildout and re-run buildout.

Configuration

Configure the Sentry DSN by setting the environment variable SENTRY_DSN inside your shell configuration or using buildout:

[instance]
environment-vars +=
    SENTRY_DSN https://......

Supplementary information logged in Sentry

collective.sentry will create automatically a Sentry tag instance_name which is derived from the buildout part name of the related instance. An additional tag project can be configured (optional) if you set the environment variable SENTRY_PROJECT. This allows you introduce an additional tag for filtering, if needed.

Set SENTRY_ENVIRONMENT to differentiate between environments e.g. staging vs production (https://docs.sentry.io/enriching-error-data/environments/)

Set SENTRY_RELEASE to sent release information to sentry. (https://docs.sentry.io/workflow/releases/)

Set SENTRY_INTEGRATIONS (comma separated) for different Integrations. (https://docs.sentry.io/platforms/python/configuration/integrations/)

Optional activation

By default, if you install collective.sentry along you eggs, the instance start will crash if you do not configure SENTRY_DSN. But sometime, you have multiple environments where you want that the product to be loaded, without doing anything under the hood (same conf for dev & prod, but no sentry on dev). To enable this behavior, add SENTRY_OPTIONAL=1 to your environment variables.

Repository

https://github.com/collective/collective.sentry

Licence

  • GPL2 - GNU Public License 2

  • based on raven.contrib.zope: BSD

Author

ZOPYX/Andreas Jung, info@zopyx.com

collective.sentry has been developed as part of a Plone 5.2 migration project and it sponsored by the University Gent.

Changelog

0.3.3 (unreleased)

  • Nothing changed yet.

0.3.2 (2023-11-07)

  • Fix SENTRY_MAX_LENGTH default value again. [Lunga001]

0.3.1 (2023-10-11)

  • Fix SENTRY_MAX_LENGTH default value. [folix-01]

0.3.0 (2022-10-06)

  • Add environment var to disable sentry integration. [krissik]

0.2.6 (2022-07-28)

  • Fix a problem on errorRaisedSubscriber function that was missing the exc_info variable. [thomasmassmann]

0.2.5 (2022/07/26)

  • Add optional environment parameter for Sentry integrations (“SENTRY_INTEGRATIONS”, comma separated list) [2silver]

  • Ensure all exceptions which should be ignored are actually ignored before sending them. [thomasmassmann]

0.2.4 (2020/09/07)

  • Ignore exceptions that are ignored in the root Zope error_log. [maurits]

0.2.3 (2020/08/05)

  • Fix error handling on zope site root [krissik]

0.2.2 (2020/07/13)

  • Add check with error_log ignored_exceptions before send exceptions to sentry [eikichi18]

0.2.1 (2020/07/08)

  • Add SENTRY_ENVIRONMENT option. [fulv]

0.2.0 (2019/11/28)

  • Add optional environment parameter to set max length of stacktrace (“SENTRY_MAX_LENGTH”, default is 512) [Thokas]

0.1.7 (2019/10/21)

  • Make collective.sentry configuration optional (do not load if no SENTRY_DSN) [kiorky]

0.1 (2019/08/15)

  • initial release

Contributors

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

collective_sentry-1.0.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

collective_sentry-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file collective_sentry-1.0.0.tar.gz.

File metadata

  • Download URL: collective_sentry-1.0.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for collective_sentry-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70bf722efd44e3185fd69ce80dfd9438b2948509c70d274c1cf82972703c090c
MD5 fbe15efbd127d75fd74fd0c115d209aa
BLAKE2b-256 7ebd8412eb97a6a5c245e6e3479d89437687627186b8c8caee93327608dd6759

See more details on using hashes here.

File details

Details for the file collective_sentry-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collective_sentry-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e666ed5665e3ad125e7096e62a825b4ca6e7e5bd0009fd3f92321b288e10860
MD5 77ebdec0ced4e77ce626dddefcd8e189
BLAKE2b-256 6761d893a39aab9117040d26abda6c85d9d8ffbed1c35cea76e67492f0d63938

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