snowplow / snowplow-java-tracker

Snowplow event tracker for Java. Add analytics to your Java desktop and server apps, servlets and games. (See also: snowplow-android-tracker)
http://snowplowanalytics.com
Apache License 2.0
23 stars 36 forks source link

Set default HTTP status codes not to retry on (close #337) #349

Closed mscwilson closed 2 years ago

mscwilson commented 2 years ago

For issue #337.

Sets request HTTP status codes to not retry by default: 400, 401, 403, 410, and 422.

Codes can be configured for retry or no retry (including overriding the defaults) using the new BatchEmitter builder option customRetryForStatusCodes(). This replaces fatalResponseCodes(). Note that 2xx status codes will always be deemed successful, and will never be retried.