Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minor #38413 [HttpClient] change piority of RetryableHttpClient (jder…
…usse)

This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpClient] change piority of RetryableHttpClient

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | /
| License       | MIT
| Doc PR        | /

This make the RetryableHttpClient decorated the TraceableHttpClient.
User will be able to check content of each sub-request

Commits
-------

9568d43 Change priority of RetryableHttpClient
  • Loading branch information
nicolas-grekas committed Oct 5, 2020
2 parents cb3e18a + 9568d43 commit 5a3e1db
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2094,7 +2094,7 @@ private function registerHttpClientRetry(array $retryOptions, string $name, Cont

$container
->register($name.'.retry', RetryableHttpClient::class)
->setDecoratedService($name)
->setDecoratedService($name, null, -10) // lower priority than TraceableHttpClient
->setArguments([new Reference($name.'.retry.inner'), $deciderReference, $backoffReference, $retryOptions['max_retries'], new Reference('logger')])
->addTag('monolog.logger', ['channel' => 'http_client']);
}
Expand Down

0 comments on commit 5a3e1db

Please sign in to comment.