https://github.com/timic/ratpack-sentry
Integrates Sentry exception handling solution into ratpack web-framework.
https://github.com/timic/ratpack-sentry
java ratpack sentry
Last synced: 27 days ago
JSON representation
Integrates Sentry exception handling solution into ratpack web-framework.
- Host: GitHub
- URL: https://github.com/timic/ratpack-sentry
- Owner: timic
- License: apache-2.0
- Created: 2018-08-22T15:19:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T09:09:21.000Z (over 4 years ago)
- Last Synced: 2023-08-20T02:14:09.403Z (about 2 years ago)
- Topics: java, ratpack, sentry
- Language: Java
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://search.maven.org/search?q=g:%22com.github.timic%22%20AND%20a:%22ratpack-sentry%22)
[](https://travis-ci.org/timic/ratpack-sentry)
[](https://codecov.io/gh/timic/ratpack-sentry)This library aims to integrate [Sentry](https://sentry.io) (an error tracking solution)
into [Ratpack](https://ratpack.io) web-framework.### Install
Via gradle:
```groovy
repositories {
mavenCentral()
}dependencies {
compile "com.github.timic:ratpack-sentry:x.y.z"
}
```### Usage
Library has a customized `SentryClientFactory` which provides ratpack's execution threads aware `ContextManager` and also
properly handles http request attributes.You can configure client factory either in code
```java
import com.github.timic.ratpack.sentry.RatpackSentryClientFactory;class Application {
public static void main(String[] args){
Sentry.init(new RatpackSentryClientFactory());
RatpackServer.start(server -> server
// ...
);
}}
```or in sentry [config file](https://docs.sentry.io/clients/java/config/#configuration-via-properties-file):
```properties
factory=com.github.timic.ratpack.sentry.RatpackSentryClientFactory
```