core.sentry
Classes
A Sentry SDK integration for OneGov Cloud, which relies on |
|
Base class for request extraction. |
Functions
|
|
|
Module Contents
- 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.- 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]
- core.sentry._make_event_processor(weak_request: Callable[[], CoreRequest | None], integration: OneGovCloudIntegration) sentry_sdk._types.EventProcessor [source]