Module: Ecoportal::API::Common::Client::WithRetry

Includes:
ElasticApmIntegration
Included in:
Ecoportal::API::Common::Client
Defined in:
lib/ecoportal/api/common/client/with_retry.rb

Constant Summary collapse

DELAY_REQUEST_RETRY =
5
RETRY_ATTEMPTS =
5
HANDLED_CONNECTION_ERRORS =

HTTP::TimeoutError is a SIBLING of HTTP::ConnectionError in the http gem's hierarchy (ConnectTimeoutError < TimeoutError < Error), so it must be listed explicitly: without it a transient connect/read/write timeout is never retried and kills a whole batch mid-loop (live-confirmed on the Farmers native card, 2026-07-30 — see multi_org_api FARMERS_NATIVE_MIGRATION.md).

[
  HTTP::ConnectionError,
  HTTP::TimeoutError,
  IOError
].freeze

Constants included from ElasticApmIntegration

ElasticApmIntegration::APM_SERVICE_NAME

Method Summary

Methods included from ElasticApmIntegration

#log_unexpected_server_error