/ratpack-sentry

Integrates Sentry exception handling solution into ratpack web-framework.

Primary LanguageJavaApache License 2.0Apache-2.0

Maven Build Status codecov

This library aims to integrate Sentry (an error tracking solution) into Ratpack web-framework.

Install

Via gradle:

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

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