This library aims to integrate Sentry (an error tracking solution) into Ratpack web-framework.
Via gradle:
repositories {
mavenCentral()
}
dependencies {
compile "com.github.timic:ratpack-sentry:x.y.z"
}
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
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:
factory=com.github.timic.ratpack.sentry.RatpackSentryClientFactory