Description
Problem:
We are using RestClient to make make a request to an external API which is raising RestClient::ServerBrokeConnection
which we plan on addressing using ruby's retry
since the majority of requests are succeeding; however, I do not see
Given that datadog's RestClient patch is going to associate the error with the span and finish the span before my app code can retry, I'm curious how I can suppress these errors when I am retrying the error.
Describe the goal of the feature
Guidance and/or functionality for handling error retrying within an application that crosses the datadog patching boundary, ideally for other integrations.
Additionally, it'd be nice to have some insight into these transient errors, or retries.
Describe alternatives you've considered
Switching from RestClient to faraday and using the retry middleware to hopefully be handled within datadog's error tracking of the span.