https://github.com/mmontone/cl-sentry-client
Sentry client for Common Lisp
https://github.com/mmontone/cl-sentry-client
Last synced: 4 months ago
JSON representation
Sentry client for Common Lisp
- Host: GitHub
- URL: https://github.com/mmontone/cl-sentry-client
- Owner: mmontone
- License: mit
- Created: 2018-02-20T13:44:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T00:39:02.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T12:56:38.864Z (about 1 year ago)
- Language: Common Lisp
- Size: 328 KB
- Stars: 24
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cl - cl-sentry-client - a Sentry client for Common Lisp, the cloud-based error monitoring system. [MIT][200]. (Interfaces to other package managers / Hosting platforms)
README
# CL-SENTRY-CLIENT
Sentry client for Common Lisp
WIP
## Basic usage
```lisp
(sentry-client:initialize-sentry-client )
(sentry-client:with-sentry-error-handler () (error "test"))
```
Or in your own error handler:
```lisp
(handler-case (my-code-with-error)
(error (e)
(sentry-client:capture-exception e)
...)))
```
### Hunchentoot handler
```lisp
(defmethod hunchentoot:maybe-invoke-debugger :after (condition)
(when hunchentoot:*catch-errors-p*
;; There's an error in trivial-backtrace:map-backtrace in SBCL
;; if we don't set sb-debug:*stack-top-hint* to NIL
(let ((sb-debug:*stack-top-hint* nil))
(sentry-client:capture-exception condition))))
```
Just add `sentry-client.hunchentoot` as ASDF dependency to include the Hunchentoot handler.
## Async client version
The async version of the client uses simple-tasks library for sending HTTP requests in the background
```lisp
(ql:quickload :sentry-client.async)
(sentry-client:initialize-sentry-client :client-class 'sentry-client:async-sentry-client)
(sentry-client:test-sentry-client)
```
## Screenshots


## License
MIT