core.sentry

Module Contents

Classes

OneGovCloudIntegration

A Sentry SDK integration for OneGov Cloud, which relies on

CoreRequestExtractor

Base class for request extraction.

Functions

_capture_exception(→ None)

_make_event_processor(→ sentry_sdk._types.EventProcessor)

class core.sentry.OneGovCloudIntegration(with_wsgi_middleware: bool = True)[source]

Bases: sentry_sdk.integrations.Integration

A Sentry SDK integration for OneGov Cloud, which relies on onegov.core.request.CoreRequest to forward more detailed information to Sentry.

identifier = 'onegov-cloud'[source]
transaction_style = 'path'[source]
static setup_once() None[source]

Initialize the integration.

This function is only called once, ever. Configuration is not available at this point, so the only thing to do here is to hook into exception handlers, and perhaps do monkeypatches.

Inside those hooks Integration.current can be used to access the instance again.

class core.sentry.CoreRequestExtractor(request: Any)[source]

Bases: sentry_sdk.integrations._wsgi_common.RequestExtractor

Base class for request extraction.

request: core.request.CoreRequest[source]
env() _typeshed.wsgi.WSGIEnvironment[source]
cookies() webob.cookies.RequestCookies[source]
raw_data() str[source]
form() dict[str, str][source]
files() dict[str, webob.request._FieldStorageWithFile][source]
size_of_file(postdata: webob.request._FieldStorageWithFile) int[source]
core.sentry._capture_exception(exc_info: sentry_sdk.utils.ExcInfo) None[source]
core.sentry._make_event_processor(weak_request: Callable[[], CoreRequest | None], integration: OneGovCloudIntegration) sentry_sdk._types.EventProcessor[source]