Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emaringolo/seaside-sentry
Integration of Sentry error tracking platform as Seaside middleware
https://github.com/emaringolo/seaside-sentry
Last synced: 16 days ago
JSON representation
Integration of Sentry error tracking platform as Seaside middleware
- Host: GitHub
- URL: https://github.com/emaringolo/seaside-sentry
- Owner: eMaringolo
- License: mit
- Created: 2022-11-02T01:16:00.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T18:01:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T13:25:11.285Z (about 1 month ago)
- Language: Smalltalk
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# seaside-sentry
Integration of Sentry error tracking platform as Seaside middleware# Installation
```smalltalk
Metacello new
baseline: 'SeasideSentry';
repository: 'github://eMaringolo/seaside-sentry/source';
load.
```# How to use
`WASentryExceptionFilter` is just another exception handler, but it contains a "parent" handler, which is the regular exception handler class that will likely report the exception to the user.
```smalltalk
handler := WAAdmin defaultDispacher handlerAt: 'yourApp'.
filter := WASentryExceptionFilter new.
Sentry showNotification: false.
handler addFilter: filter.
handler exceptionHandler: WASentryErrorHandler.
filter configuration at: #dsn put: "yourSentryDSN".
"After reporting to Sentry, continue with regular exception handling, using the 'parent' handler."
filter configuration
at: #parentExceptionHandler
put: WAErrorHandler.
```