MindscapeHQ / raygun4java

Java SDK for the Raygun service
https://raygun.com
MIT License
23 stars 21 forks source link

XRAY-1889 Adds support for local host filtering on requests #52

Closed jscottnz closed 6 years ago

jscottnz commented 6 years ago

This PR adds support to not set errors that occur on a localhost - ie developers machine.

It also adds a default factory that provides a fluent adding of filters:

raygunClient = new DefaultRaygunServletClientFactory("1234", context))
                .withLocalRequestsFilter()
                .withRequestFormFilters("form1", "form2")
                .withRequestHeaderFilters("header1", "header2")
                .withRequestQueryStringFilters("queryParam1", "queryParam2")
                .getClient(request);