Skip to content

Integrates Sentry exception handling solution into ratpack web-framework.

License

Notifications You must be signed in to change notification settings

timic/ratpack-sentry

Repository files navigation

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

About

Integrates Sentry exception handling solution into ratpack web-framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published